MCPcopy
hub / github.com/phaserjs/phaser / setAlpha

Method setAlpha

types/phaser.d.ts:18057–18057  ·  view source on GitHub ↗

* Set the Alpha level of this Game Object. The alpha controls the opacity of the Game Object as it renders. * Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque. * * If your game is running under WebGL you can op

(topLeft?: number, topRight?: number, bottomLeft?: number, bottomRight?: number)

Source from the content-addressed store, hash-verified

18055 * @returns This Game Object instance.
18056 */
18057 setAlpha(topLeft?: number, topRight?: number, bottomLeft?: number, bottomRight?: number): this;
18058 /**
18059 * The alpha value of the Game Object, between 0 (fully transparent) and 1 (fully opaque).
18060 *

Callers 15

TextureManager.jsFile · 0.65
Key.jsFile · 0.65
ContainerWebGLRendererFunction · 0.65
ContainerCanvasRendererFunction · 0.65
AlphaSingle.jsFile · 0.65
Alpha.jsFile · 0.65
LayerWebGLRendererFunction · 0.65
LayerCanvasRendererFunction · 0.65
createMethod · 0.65
createMethod · 0.65
helper.test.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected