ScreenSprite Class
The sprite which covers the entire game screen.
Constructor
ScreenSprite ()
Methods
setBlack ()
Sets black to the color of the screen sprite.
setColor ( r , g , b )
Sets the color of the screen sprite by values.
Parameters:
-
r
NumberThe red value in the range (0, 255)
-
g
NumberThe green value in the range (0, 255)
-
b
NumberThe blue value in the range (0, 255)
setWhite ()
Sets white to the color of the screen sprite.
Properties
opacity Number
The opacity of the sprite (0 to 255).