Template:ColourMixer
rgb(127.5,127.5,127.5)
Usage
This template allows you to mix two colours together, which is then output in rgb(x,y,z) or rgba(x,y,z,w) form. The alpha is optional; leave it out if it's not being used.
{{ColourMixer|r1=255|g1=255|b1=255|[a1=255]|r2=0|g2=0|b2=0|[a2=0]|f=0.5}}
0.0 | Only the first colour |
0.5 | Even mix of the two (default if not specified) |
1.0 | Only the second colour |