Wanted to create something that reminded me of 1960’s wallpaper in terms of color and style. wallpaper
function setup() {
createCanvas(650, 400);
background(255,255,185);
var tw = 60;
var th = 60;
var oy = 50;
var ox = 50;
var rowCount = 0;
rowCount++;
for (var y = 0; y < 6; y++) {
for (var x = 0; x < 10; x++) {
var py = oy + y * th;
var px = ox + x * tw;
if (y*rowCount%2==0){
fill(64,209,151);
ellipse (px,py,20,20);
fill(255,255,0);
ellipse (px-10,py-10,10,10);
ellipse (px-15,py,10,10);
ellipse (px+15,py,10,10);
ellipse (px+10,py+10,10,10);
}
else {
fill(255);
ellipse(px, py, 20, 20);
}
}
}
noLoop();
}
function draw() {
// draw is not called due to noLoop() in setup()
}