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

Method setTint

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

* Sets the tint color on this Game Object. * * The tint works by taking the pixel color values from the Game Objects texture, and then * combining it with the color value of the tint. You can provide either one color value, * in wh

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

Source from the content-addressed store, hash-verified

20331 * @returns This Game Object instance.
20332 */
20333 setTint(topLeft?: number, topRight?: number, bottomLeft?: number, bottomRight?: number): this;
20334 /**
20335 * Sets the secondary tint color on this Game Object.
20336 * This is used in two-color tint modes.

Callers 7

SetTintFunction · 0.80
TextureManager.jsFile · 0.80
Tint.jsFile · 0.80
NineSlice.jsFile · 0.80
createMethod · 0.80
createMethod · 0.80
Bob.test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected