mixcolor | R Documentation |
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))
alpha |
The mixed color is obtained by combining an amount
|
color1 |
The first color. |
color2 |
The second color. |
where |
The color space where the mixing is to take place. |
The mixed color. This is in the color space specified by
where
.
Ross Ihaka
RGB
, HSV
, XYZ
,
LAB
, polarLAB
, LUV
,
polarLUV
.
mixcolor(0.5, sRGB(1, 0, 0), sRGB(0, 1, 0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.