| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
colorMap |
HTMLImageElement | HTMLCanvasElement | PIXI.BaseTexture | PIXI.Texture |
<optional> |
The colorMap texture of the filter. |
|
nearest |
boolean |
<optional> |
false |
Whether use NEAREST for colorMap texture. |
mix |
number |
<optional> |
1 |
The mix from 0 to 1, where 0 is the original image and 1 is the color mapped image. |
Extends
- PIXI.Filter
Members
the colorMap texture
The size of one color slice
The mix from 0 to 1, where 0 is the original image and 1 is the color mapped image.
- Default Value:
- 1
Whether use NEAREST for colorMap texture.
Methods
Destroys this filter
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
destroyBase |
boolean |
<optional> |
false |
Whether to destroy the base texture of colorMap as well |
If the colorMap is based on canvas , and the content of canvas has changed,
then call updateColorMap for update texture.

