Phaser API Documentation

  Version: 
Only webGL setTintFill([value])

Description:

Sets the tint fill mode.

Mode 0 (false) is an additive tint, the default, which blends the vertices colors with the texture. This mode respects the texture alpha.

Mode 1 (true) is a fill tint. Unlike an additive tint, a fill-tint literally replaces the pixel colors from the texture with those in the tint. You can use this for effects such as making a player flash 'white' if hit by something. This mode respects the texture alpha.

See the setColors method for details of how to color each of the vertices.

Parameters:

name type arguments Default description
value boolean <optional> false

Set to false for an Additive tint or true fill tint with alpha.

Returns:
Description:

This Game Object instance.

Since: 3.23.0