Phaser API Documentation

  Version: 
gray(shade)

Description:

Sets this Color object to be grayscaled based on the shade value given.

Parameters:

name type description
shade number

A value between 0 and 255.

Returns:
Description:

This Color object.

Since: 3.13.0