In the RGB color model let P 05f 06f 02f and Q 03f 07f 05f
In the RGB color model, let P = (0.5f, 0.6f, 0.2f) and Q = (0.3f, 0.7f, 0.5f) be two color points. What is the formula to calculate the color interpolation?
Solution
Below is the calculation & theory of color interpolation for RGB color model:
P = (0.5f, 0.6f, 0.2f)
Q = (0.3f, 0.7f, 0.5f)
fraction= 0.3
you can do interpolation in any color space, including RGB, which, in my opinion, is one of the easiest.
Let\'s assume the variation will be controlled by a fraction value between 0 and 1 (e.g. 0.3), where 0 means full color1 and 1 means full color2.
The theory:
Applying:
As the RGB has 3 channels (red, green and blue) we have to perform this math for each one of the channels.
