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

Interface AlphaSingle

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

* Provides methods used for setting the alpha property of a Game Object. * Unlike the full Alpha component, which supports individual alpha values for each corner * of a Game Object, this component applies a single uniform alpha across the whole object. * Shoul

Source from the content-addressed store, hash-verified

18092 * Should be applied as a mixin and not used directly.
18093 */
18094 interface AlphaSingle {
18095 /**
18096 * Clears the alpha value associated with this Game Object.
18097 *
18098 * Immediately sets the alpha back to 1 (fully opaque).undefined
18099 * @returns This Game Object instance.
18100 */
18101 clearAlpha(): this;
18102 /**
18103 * Set the Alpha level of this Game Object. The alpha controls the opacity of the Game Object as it renders.
18104 * Alpha values are provided as a float between 0, fully transparent, and 1, fully opaque.
18105 * @param value The alpha value applied across the whole Game Object. Default 1.
18106 * @returns This Game Object instance.
18107 */
18108 setAlpha(value?: number): this;
18109 /**
18110 * The alpha value of the Game Object.
18111 *
18112 * This is a global value, impacting the entire Game Object, not just a region of it.
18113 * The value is clamped to the range [0, 1]. Setting alpha to 0 also clears the render
18114 * flag, preventing the Game Object from being drawn until the alpha is raised above 0 again.
18115 */
18116 alpha: number;
18117 }
18118
18119 /**
18120 * Provides methods used for setting the blend mode of a Game Object.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…