This function can be used to compute the result of color mixing (it assumes additive mixing).
mixcolor(alpha, color1, color2, where = class(color1))
The mixed color is obtained by combining an amount
The first color.
The second color.
The color space where the mixing is to take place.
The mixed color. This is in the color space specified by
#> R G B #> [1,] 0.5 0.5 0