Members
(protected, static, readonly) TYPE :string
Type:
Properties- string
Name | Type | Description |
---|---|---|
NONE | string | No filter. |
GRAYSCALE | string | Grayscale filter. |
SEPIA | string | Sepia filter. |
INVERT | string | Invert filter. |
BRIGHTNESS | string | Brightness filter. |
CONTRAST | string | Contrast filter. |
BLUR | string | Blur filter. |
HUE_ROTATE | string | Hue rotate filter. |
SATURATE | string | Saturate filter. |
OPACITY | string | Opacity filter. |
DROP_SHADOW | string | Drop shadow filter. |
NONE | string | |
GRAYSCALE | string | |
SEPIA | string | |
INVERT | string | |
BRIGHTNESS | string | |
CONTRAST | string | |
BLUR | string | |
HUE_ROTATE | string | |
SATURATE | string | |
OPACITY | string | |
DROP_SHADOW | string |
- Source
Methods
Add(type, …values)
Add a new filter to the list.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
type | string | The type of the filter. | |
values | number | <repeatable> | Filter values. |
- Source
Remove(type, …values)
Remove a filter from the list.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
type | string | The type of the filter. | |
values | number | <repeatable> | Filter values. |
- Source
toString(ctx)
Apply the filters to a canvas context.
Parameters:
Name | Type | Description |
---|---|---|
ctx | CanvasRenderingContext2D | The canvas rendering context. |
- Source