Class: ToneSprite

ToneSprite()

new ToneSprite()

The sprite which changes the screen color in 2D canvas mode.
Properties:
Name Type Description
_red Number
_green Number
_blue Number
_gray Number

Extends

  • PIXI.Container

Methods

initialize()

reset()

Clears the tone.

setTone(r, g, b, gray)

Sets the tone.
Parameters:
Name Type Description
r Number The red strength in the range (-255, 255)
g Number The green strength in the range (-255, 255)
b Number The blue strength in the range (-255, 255)
gray Number The grayscale level in the range (0, 255)