aboutsummaryrefslogtreecommitdiff
path: root/test-nick-colors
Commit message (Collapse)AuthorAgeFilesLines
* test-nick-colors: fix and streamlinePřemysl Eric Janouch2021-06-251-3/+6
| | | | A recent addition of an N_ELEMENTS macro invocation broke it.
* degesch: pick colours based on relative luminancePřemysl Eric Janouch2021-06-151-0/+23
Replaces the inaccurate Rec. 709 luma we used to use before. This is the first feature here that requires libm, which doesn't seem to be a particularly great sacrifice. Moreover, I've rectified that the input isn't linear in sRGB, and then was even normalized wrong for the luma formula.