mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-22 23:04:42 +00:00
fix saturate filter (#3351)
This commit is contained in:
parent
28c2654a23
commit
98c3291806
1 changed files with 1 additions and 2 deletions
|
|
@ -34,12 +34,11 @@
|
|||
* Constructor
|
||||
* @memberOf fabric.Image.filters.Saturate.prototype
|
||||
* @param {Object} [options] Options object
|
||||
* @param {Number} [options.contrast=0] Value to saturate the image (-255...255)
|
||||
* @param {Number} [options.saturate=0] Value to saturate the image (-100...100)
|
||||
*/
|
||||
initialize: function(options) {
|
||||
options = options || { };
|
||||
this.saturate = options.saturate || 0;
|
||||
this.loadProgram();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue