compareColors

external fun compareColors(color1: Color, color2: Color): Boolean

Compare two parsed colors.

Equivalent representations are treated as equal, for example #fff and rgb(255, 255, 255). Hue and saturation are ignored for colors where they have no effect, and fully transparent colors are equal regardless of their other components.