News for hackers. Stuff that matters.
Re:Show HN: I Made JavaScript Color Conversion Library for L... by magicalhippo on Friday May 22, 2020 @07:34AM (#23270980)
> leave that responsibility to the user

I think it would be better to have a function in the library that does this. Then it can be extended to allow for more clever things than a simple min/max clamp.

Re:Show HN: I Made JavaScript Color Conversion Library for L... by kelsolaar on Friday May 22, 2020 @07:45AM (#23271055)
Gamut mapping is not an easy thing though!
Re:Show HN: I Made JavaScript Color Conversion Library for L... by magicalhippo on Friday May 22, 2020 @01:35PM (#23274743)
That is true :)

Color is a great example of how "low-order" approximations are very useful, and how quickly it can get very hard once you want to go a bit beyond that.