ScreenSprite Class

The sprite which covers the entire game screen.

Constructor

ScreenSprite ()

Item Index

Methods Properties

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 Number

    The red value in the range (0, 255)

  • g Number

    The green value in the range (0, 255)

  • b Number

    The 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).