I am trying to find a way to go from some proportion of cyan, magenta and yellow where:
cyan: 33 % + magenta : 33% + yellow : 33% = 100% black
so each is represented as a percentage of the sum total. mixing 50% magenta and 50 % yellow should result in red. Mixing some colour with its complement would in effect mix some proportion of all three primaries and result in some amount of black and pulling it further towards one of the primaries, so mixing red and blue would mix cmy in some proportion which would result in some amount of black and a balance of the other two primaries so it would just change chroma.
Any help is appreciated. I know that the gamuts of devices and colour models vary so it doesn't need to be perfect, it just needs to be intuitive for someone familiar with the cmy colour wheel to be able to use.
The desired output is an rgb colour code or a cmyk that could then be converted to rgb.
There is no white so you're limited to the hues and shades that can be formed from the three primaries. I'm okay with that.
Hey guys, I'm still trying to find a solution to this. If anyone could help it would be great.
This is for a game, the input is derived from some time value that represents a proportion of primary paints. Sort of.
I realize that in cmyk k stands for key and is a black dye that is purer than the black that can be obtained from mixing the primaries. In my game cmyk is unimportant, only that I can mix three primary colours cyan, magenta and yellow to mix the colour wheel.
It is unlikely that black will even be required, but the chroma effect of mixing some proportion of all three primaries together is required as I would want more than just the hues. I appreciate that lightness of the hues is not possible without white but that is also fine.
I want it so that given some floating point value for representing some proportion of each primary, I can calculate that as percentages and then resolve that to an rgb colour code. It need not be a perfect conversion as only the rgb colour will be displayed, the cmy will just be for the calculation. A close approximation will suffice.
I don't need an especially wide gamut. I just need to be able to mix some proportion of the paints to mix a colour palette. If the player mixes equal parts of each primary then it would be black, if they keep mixing in magenta then it will become more and more magenta again as the volume of magenta dwarfs the volume of black.
If you mix red and blue you're mixing magenta and yellow with magenta and cyan.
I hope that clarifies some of the questions. The goal is to take the intuitive representation expressed to the player, three primary colours, and resolve that to a colour code that can be used to actually render to the screen.
The player will be able to clear the colour so they can then return to a pure primary colour. But to mix any particular colour they will do so by mixing the primary colours. Hue, chroma and brightness should be possible though lightness isn't possible without white as this is subtractive.