LeaVerou / css.land

Hands on CSS demos
https://css.land
MIT License
225 stars 17 forks source link

gradient stops use clipped RGB channels #7

Closed mirisuzanne closed 4 years ago

mirisuzanne commented 4 years ago

Maybe this was for performance reasons, since chroma correction can slow things down?

https://github.com/LeaVerou/css.land/blob/master/lch/lch.js#L80 Should set forceInGamut=true when calling the conversion function.

I think force_into_sRGB_gamut() could also be extended to support chroma reduction for the p3 gamut?

LeaVerou commented 4 years ago

Definitely not intentional, thanks for catching that!!