xxxxxxxxxx
32
// Homage to Josef Albers
function setup() {
// setup is only run once
createCanvas(400, 400); // canvas size
}
function draw() {
// draw loops infinately
// create green background square
background(51, 127, 88); // rgb colors (0~255)
// blue square
rectMode(CENTER);
noStroke();
fill(25, 132, 134);
// rect(x, y, w, h, [detailX], [detailY])
rect(width/2, height/2+30, 300, 300)
// grey square
fill(156, 152, 142); // new color, only modifies stuff below
rect(width/2, height/2+60, 200, 200)
// yellow center square
fill(219, 171, 77);
rect(width/2, height/2+90, 100, 100)
}