Classes
Methods
activate(bool)
Activate the filter.
Parameters:
| Name | Type | Description | 
|---|---|---|
| bool | boolean | Flag to activate or not. | 
- Source
addEventListener(type, callback)
Add an event listener to this class.
Parameters:
| Name | Type | Description | 
|---|---|---|
| type | string | The event type. | 
| callback | function | The function associated with the provided event type, will be called with the fired event. | 
- Source
init()
Initialise the filter. Called once the image is loaded.
- Source
removeEventListener(type, callback)
Remove an event listener from this class.
Parameters:
| Name | Type | Description | 
|---|---|---|
| type | string | The event type. | 
| callback | function | The function associated with the provided event type. | 
- Source
run(args)
Run the filter.
Parameters:
| Name | Type | Description | 
|---|---|---|
| args | * | The filter arguments. | 
- Source