Closed Piezoid closed 2 years ago
Latest commit: 2dde7ca9504e7a4e17c63a6a1b2294eab8df53c5
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This has been published as v0.8.1
! 🎉
Changes
Hi ! Thanks for that new implementation of gamut clipping. However, I've noticed that
lighten('red', 0.99)
returns a pure red color.After comparing Björn's implementation with yours, I found two errors:
findCusp
the luminance is only taking the blue channel into account because of extraneous parenthesis. This causedfindGamutIntersection
to work in the lower half instead of the upper half of the gamut.findGamutIntersection
was returning the correction without adding it to the initial guess.Checklist
pnpm run changeset
)