xxxxxxxxxx
46
/*
Assignment #2
*/
function setup() {
createCanvas(400, 400);
rectMode(CENTER)
colorMode(HSB);
}
function draw() {
background(220);
noStroke();
//Alternates between each shape in descending order
fill(4,100,100);
square(200,200,400);
fill(219,90,40);
quad(200,0,400,200,200,400,0,200);
fill(4,76,100);
square(200,200,200);
fill(219,49,51);
quad(200,100,300,200,200,300,100,200);
fill(4,42,100);
square(200,200,100);
fill(219,47,65);
quad(200,150,250,200,200,250,150,200);
fill(4,18,100);
square(200,200,50);
fill(219,11,95);
quad(200,175,225,200,200,225,175,200);
}
function mousePressed() {
save("color.png");
}