Phaser API Documentation

  Version: 
Only webGL setTint([tint])

Description:

Sets an additive tint on all vertices of this Mesh Game Object.

The tint works by taking the pixel color values from the Game Objects texture, and then multiplying it by the color value of the tint.

To modify the tint color once set, either call this method again with new values or use the tint property to set all colors at once.

To remove a tint call clearTint.

Parameters:

name type arguments Default description
tint number <optional> 0xffffff

The tint being applied to all vertices of this Mesh Game Object.

Returns:
Description:

This Game Object instance.

Since: 3.60.0