Phaser API Documentation

  Version: 
setAltFillStyle([fillColor], [fillAlpha])

Description:

Sets the fill color and alpha level that the alternating grid cells will use.

If this method is called with no values then alternating grid cells will not be rendered in a different color.

Also see the setOutlineStyle and setFillStyle methods.

This call can be chained.

Parameters:

name type arguments Default description
fillColor number <optional>

The color the alternating grid cells will be filled with, i.e. 0xff0000 for red.

fillAlpha number <optional> 1

The alpha the alternating grid cells will be filled with. You can also set the alpha of the overall Shape using its alpha property.

Returns:
Description:

This Game Object instance.

Since: 3.13.0