chromath
chromath copied to clipboard
HCG support
Hello. Can you implement HCG? I can help by tips.
- Chroma (C value) is second channel of HCG (i.e. chroma, C_hcg), without any operation.
- m (min of RGB) value can be calculated by G_hcg * (1 - C).
- G_hcg can be calculated by m / (1 - C) if you convert from RGB
https://github.com/acterhd/hcg-color