Color mixing in digital space is fundamentally different from mixing physical pigments. While artists blend paints using subtractive color mixing, digital displays use additive color mixing with RGB values. This implementation demonstrates a precise mathematical approach to mixing RGB colors with specific proportions.
Here's a TypeScript implementation that handles proportional color mixing:
typescript