ToneSprite Class

The sprite which changes the screen color in 2D canvas mode.

Item Index

Methods

Methods

reset ()

Clears the tone.

setTone ( r , g , b , gray )

Sets the tone.

Parameters:

  • 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)