xxxxxxxxxx
33
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
strokeWeight(20)
rect(10,10,400);
//medium cube
stroke(204, 140, 51)
rect(100,200,300);
fill(57, 198, 149);
//small cube
stroke('yellow');
rect(200,50, 200);
fill(57, 177, 198);
//large cube
stroke(204, 64, 51);
rect(300,0, 100);
fill(57, 106, 198);
}
function mousePressed() {
save("color.png");
}