/**
* Blending colors.
*
*
Elie Zananiri
* CART 253, Winter 2008
*/
void setup() {
size(300, 300);
noLoop();
noStroke();
smooth();
colorMode(RGB, 1.0);
}
void draw() {
background(1.0);
// draw a red circle
fill(1.0, 0, 0, 0.5);
ellipse(125, 125, 100, 100);
// draw a green circle
fill(0, 1.0, 0, 0.5);
ellipse(150, 175, 100, 100);
// draw a blue circle
fill(0, 0, 1.0, 0.5);
ellipse(175, 125, 100, 100);
}