Compares the given rgb parameters with those in this object and returns
a boolean true
value if they are equal, otherwise it returns false
.
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. |
true
if the given values match those in this object, otherwise false
.