powered by
This function can be used to compute the result of color mixing, assuming additive mixing (e.g., as appropriate for RGB or XYZ).
mixcolor(alpha, color1, color2, where = class(color1))
The mixed color. This is in the color space specified by where.
where
The mixed color is obtained by combining an amount 1 - alpha of color1 with an amount alpha of color2.
1 - alpha
color1
alpha
color2
The first color.
The second color.
The color space where the mixing is to take place.
Ross Ihaka
RGB, HSV, XYZ, LAB, polarLAB, LUV, polarLUV.
RGB
HSV
XYZ
LAB
polarLAB
LUV
polarLUV
mixcolor(0.5, sRGB(1, 0, 0), sRGB(0, 1, 0))
Run the code above in your browser using DataLab