Added equals function

This commit is contained in:
Niels van Hoorn
2017-06-26 15:07:48 +02:00
parent 297e70484e
commit cfd790c64a
+5
View File
@@ -92,6 +92,11 @@ interface tinycolor {
/**/
mix(color1: ColorInput, color2: ColorInput, amount?: number): tinycolorInstance;
/**
* Can be called with any tinycolor input
*/
equals(color1: ColorInput, color2: ColorInput): boolean;
/**
* Returns a random color
*/