WOLFRAM|DEMONSTRATIONS PROJECT

Color Mixing

​
r
0.5
g
0.5
b
0.5
m
3
On the left, an array of
m
2
×
m
2
rectangles are colored red, green, or blue with probabilities weighted by three positive numbers,
r
,
g
, and
b
. The rectangle on the right is colored by mixing red, green, and blue in the proportions
r
,
g
, and
b
. As you increase
m
, the overall color of the array on the left approaches the color on the right.
(The
r
,
g
,
b
controls are sluggish when
m≥10
, so lower
m
before changing the color controls.)