powered by
This function can be used to compute the result of color mixing (it assumes additive mixing).
MixColor(col1, col2, amount1 = 0.5)
the first color.
the second color.
the amount of color1. The amount of color2 results in (1-amount1).
The mixed color as hexstring
colorRamp, rgb
colorRamp
rgb
# NOT RUN { # a mix between red and yellow with rates 3:7 MixColor("red", "yellow", 0.3) # }
Run the code above in your browser using DataLab