Resources for Manipulating Colors with Code
I am looking for resources on how to do color theory with code. For example, how to combine colors or create tints and shades.
The most important idea is that you have to undo the gamma correction, work with linear light (probably 16 bits), and then apply the gamma correction again. In linear light it is meaningful to average colors, add colors (like you have two projectors pointed at the wall), simulate subtractive colors (filters), etc.