Skip to content

format

typescript
Color.EqualsTo(other)

class: Color

description

Determines whether the current color is equal to the specified color.

parameter

param_nametypedescription
otherColorThe specified color.

reture

typedescription
booleanTrue if the colors are equal; otherwise, false.

code example

typescript
let color = Color.white;
let other = new Color(255,255,255);
color.Equals(other);