Answer the question
In order to leave comments, you need to log in
Algorithm for natural mixing of two colors?
Given: two RGB colors. You need to mix two colors and show the result. For example Blue + Yellow = Green.
I understand mixing RGB and CMYK does not give realistic results. I saw a mention of Kubelka and Munk on the net, but I could not find examples of implementation or an intelligible description anywhere.
Answer the question
In order to leave comments, you need to log in
Like on canvas - it's not RGB, it's RYB
Google can easily find how to convert from RGB to RYB
Averaging won't work?
R = (R1 + R2) div 2
G = (G1 + G2) div 2
B = (B1 + B2) div 2
a - alpha from 0 to 1
R= R1*a + R2*(1-a) - if we set transparency
, it is not clear what is not to like in the "realism" of blending?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question