Class: ColorMapFilter

ColorMapFilter

The ColorMapFilter applies a color-map effect to an object.
originalfilter

new ColorMapFilter (options)

Name Type Description
options ColorMapFilterOptions

Options for the ColorMapFilter constructor.

Extends

  • Filter

Members

DEFAULT_OPTIONS ColorMapFilterOptions staticreadonly

Default values for options.

colorMap ColorMapTexture

The colorMap texture.

colorSize number readonly

The size of one color slice.

mix number

The mix from 0 to 1, where 0 is the original image and 1 is the color mapped image.

nearest boolean

Whether use NEAREST for colorMap texture.

Methods

destroy () void

Destroys this filter

Default Value:
  • false

updateColorMap () void

If the colorMap is based on canvas, and the content of canvas has changed, then call updateColorMap for update texture.