Class: ScreenSprite

ScreenSprite

new ScreenSprite ()

The sprite which covers the entire game screen.

Extends

  • PIXI.Container

Members

opacity number

The opacity of the sprite (0 to 255).

Methods

destroy ()

Destroys the screen sprite.

setBlack ()

Sets black to the color of the screen sprite.

setColor (r, g, b)

Sets the color of the screen sprite by values.

Name Type Description
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.