⬇️ Over 200 million downloads! 🤯
This is the first pre-release of v0.7.0, with several new color spaces, and other improvements.
As a reminder, we recently started an Open Collective that you can fund directly.
If your company depends on Color.js in any way, it is in your best interest to ensure its future is sustainable.
New features
- 🆕 New color spaces
hsl-p3andhsl-rec2020color spaces: HSL syntax, wider gamut (by @LeaVerou in #735) - 🆕 New color spaces Add the experimental Helmlab family of perceptual color spaces:
helmlab-metric(Helmlab MetricSpace),helmgen(HelmGen), andhelmgenlch(HelmGenLCh) (by @Grkmyldz148) - 🆕 New deltaE method :
deltaEHelmlab, based on the Helmlab model (by @Grkmyldz148) - 🆕 New gamut mapping method:
raytrace. It traces a ray to the gamut boundary instead of binary-searching, automatically determining the RGB gamut and linear space from the space object (by @facelessuser) - 🆕 Added a
collapseoption toserialize()/Color.toString()to disable collapsing for hex colors (e.g. keep#ff0066instead of collapsing it to#f06) (by @MysteryBlokHed in #712)
Bug fixes & performance
- Add the
typesfield back topackage.json(by @MysteryBlokHed in #714) - Avoid implied color space dependencies for procedural usage, so consumers no longer need to manage them manually (by @aduth in #734)
- Reduce a CAM16 calculation in the worst-case scenario (by @facelessuser)
- Fix HCT tests and related calculations (by @facelessuser)
Full Changelog: v0.6.1...v0.7.0-alpha.1
New Contributors
- @Grkmyldz148 made their first contribution (Helmlab color spaces and
deltaEHelmlab) - @aduth made their first contribution in #734