new Blend()
Color Blend filter class
- Source:
Example
var filter = new fabric.Image.filters.Blend({
color: '#000',
mode: 'multiply'
});
var filter = new fabric.Image.filters.Blend({
image: fabricImageObject,
mode: 'multiply',
alpha: 0.5
});
object.filters.push(filter);
object.applyFilters(canvas.renderAll.bind(canvas));
Extends
Members
type
Filter type
- Inherited From:
- Default Value:
- BaseFilter
- Source:
Methods
initialize(optionsopt)
Constructor
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
Object |
<optional> |
Options object |
- Inherited From:
- 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
- Inherited From:
- Source:
Returns:
Object representation of an instance
- Type
- Object