| Name | Type | Default | Description |
|---|---|---|---|
colorMap |
HTMLImageElement | HTMLCanvasElement | PIXI.BaseTexture | PIXI.Texture |
optional
The colorMap texture of the filter. |
|
nearest |
boolean | false |
optional
Whether use NEAREST for colorMap texture. |
mix |
number | 1 |
optional
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.
-
Whether use NEAREST for colorMap texture.
Methods
-
Destroys this filter
Name Type Default Description destroyBaseboolean false optional 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
updateColorMapfor update texture.

