Here’s a puzzle …
Let’s say I want to swap the GREEN component of a color with BLUE.
Sounds prertty simple:
fn swap_gb c = color c.r c.b c.g
does not it?
But we know that the intensity of the GREEN component is different from the BLUE one. The RGB luminous value is known as: 0.229, 0.587, 0.114
The question is - how to swap G and B, but keep the color intensity?