Added setTintFill method

This commit is contained in:
Richard Davey 2020-01-17 17:58:50 +00:00
parent 18120cb0d5
commit d5473a4840

View file

@ -209,6 +209,30 @@ var Rope = new Class({
return this;
},
/**
* Swap this Game Object from using a fill-tint to an additive 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. See the `setColors` method for details of tinting the vertices.
*
* @method Phaser.GameObjects.Rope#setTintFill
* @webglOnly
* @since 3.23.0
*
* @param {boolean} [value=false] - Use tint fill (`true`) or an additive tint (`false`)
*
* @return {this} This Game Object instance.
*/
setTintFill: function (value)
{
if (value === undefined) { value = false; }
this.tintFill = value;
return this;
},
/**
* Set the alpha values used by the Rope during rendering.
*