logoalt Hacker News

mncharityyesterday at 12:31 AM1 replyview on HN

> The right approach would have been to select a color appearance model (CIECAM02 is the standard), convert all our colors to this coordinate system, do the mixing in this coordinate system and then convert back to RGB. That being said, I did not want to deal with all the extra complexity that would have come along with this. Instead, I opted for a much simpler approach.

Python's nice `colour` package supports several color appearance models.[1]

[1] https://colour.readthedocs.io/en/master/colour.appearance.ht...


Replies

mncharitytoday at 1:44 AM

But I'm glad for the ground-truthy approach taken. I suggest a pattern, of interesting data being unavailable, because it doesn't align with incentives around science or commerce. Often it exists, just sitting on someone's disk, because they think no one is likely to care.