Phaser API Documentation

  Version: 

Member of: Phaser.Display.RGB

equals(red, green, blue)

Description:

Compares the given rgb parameters with those in this object and returns a boolean true value if they are equal, otherwise it returns false.

Parameters:

name type description
red number

The red value to compare with this object.

green number

The green value to compare with this object.

blue number

The blue value to compare with this object.

Returns:
Description:

true if the given values match those in this object, otherwise false.

Type:
  • boolean
Since: 3.50.0
Source: src/display/RGB.js (Line 89)