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.
name | type | arguments | Default | description |
---|---|---|---|---|
value | boolean | <optional> | false |
Set to |
This Game Object instance.