Class: ScreenSprite

ScreenSprite

new ScreenSprite()

The sprite which covers the entire game screen.

Extends

  • PIXI.Container

Members

opacitynumber

The opacity of the sprite (0 to 255)

Methods

Destroys the screen sprite

initialize()

Initializes the screen sprite
Sets the color of the screen sprite to black

setColor(r, g, b)

Sets the color of the screen sprite by values
NameTypeDescription
rnumberThe red value in the range (0, 255)
gnumberThe green value in the range (0, 255)
bnumberThe blue value in the range (0, 255)
Sets the color of the screen sprite to white