Class: ColorFilter

ColorFilter

new ColorFilter()

The color filter for WebGL

Extends

  • PIXI.Filter

Methods

initialize()

Initializes the color filter

setBlendColor(color)

Sets the blend color of the color filter
NameTypeDescription
colorarrayThe blend color [r, g, b, a]

setBrightness(brightness)

Sets the brightness of the color filter
NameTypeDescription
brightnessnumberThe brightness (0 to 255)

setColorTone(tone)

Sets the color tone of the color filter
NameTypeDescription
tonearrayThe color tone [r, g, b, gray]
Sets the hue rotation value of the color filter
NameTypeDescription
huenumberThe hue value (-360, 360)