mirror of
https://github.com/penpot/penpot.git
synced 2026-03-26 19:21:23 -04:00
Cover all public functions: valid-hex-color?, parse-rgb, valid-rgb-color?, rgb->str, hex->rgb, rgb->hex, rgb->hsv, hsv->rgb, rgb->hsl, hsl->rgb, hex->hsl, hex->hsv, hex->rgba, hex->hsla, hex->lum, hsl->hex, hsl->hsv, hsv->hex, hsv->hsl, format-hsla, format-rgba, expand-hex, prepend-hash, remove-hash, color-string?, parse, next-rgb, reduce-range, interpolate-color, uniform-spread, uniform-spread? and interpolate-gradient. Tests pass on both JVM and JS (ClojureScript) platforms. Platform differences (NaN saturation for achromatic colors, integer vs float return types) are handled with mth/close?.