new Multiply()
Multiply filter class
Adapted from http://www.laurenscorijn.com/articles/colormath-basics
- Source:
Examples
var filter = new fabric.Image.filters.Multiply({
color: '#F0F'
});
object.filters.push(filter);
object.applyFilters(canvas.renderAll.bind(canvas));
var filter = new fabric.Image.filters.Multiply({
color: 'rgb(53, 21, 176)'
});
object.filters.push(filter);
object.applyFilters(canvas.renderAll.bind(canvas));
Extends
Members
type
Filter type
- Overrides:
- Default Value:
- Multiply
- Source:
Methods
applyTo(canvasEl)
Applies filter to canvas element
Parameters:
Name | Type | Description |
---|---|---|
canvasEl |
Object | Canvas element to apply filter to |
- Source:
initialize(optionsopt)
Constructor
Parameters:
Name | Type | Attributes | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Options object
Properties
|
- Overrides:
- Source:
setOptions(optionsopt)
Sets filter's properties from options
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object |
<optional> |
Options object |
- Inherited From:
- Source:
toJSON() → {Object}
Returns a JSON representation of an instance
- Inherited From:
- Source:
Returns:
JSON
- Type
- Object
toObject() → {Object}
Returns object representation of an instance
- Overrides:
- Source:
Returns:
Object representation of an instance
- Type
- Object