Edit this page

equals

Compares two color objects for equality.

Returns

Boolean returns true if the two colors are the same. Otherwise, false

Example

<script>
var red = kendo.Color.fromRGB(1,0,0);
var green = kendo.Color.fromRGB(0,1,0);
console.log(red.equals(green)); // logs false

var opaqueRed = kendo.Color.fromBytes(255,0,0,1);
console.log(red.equals(opaqueRed)); // logs true
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy