xxxxxxxxxx
23
function setup() {
createCanvas(displayWidth, displayHeight);
let colors = [color(255, 0, 0), color(0, 255, 0), color(0, 0, 255)];
for (let i = 0; i < 10; i++) {
for (let z = 0; z < 3; z++) {
for (let j = 0; j < 10; j++) {
push(); //The push() function saves the current drawing style settings and transformations
translate(i * 50 + 50 + z*500, j * 50 + 50); //translate(left/right translation, up/down translation)
/*Draw your own design below!*/
square(0, 0, 20); //Example
ellipse(i * 1.5, j * 1.5, 20);
fill(colors[z]);
text("Rooy", 0, 0);
pop(); //The pop() restores the drawing style settings and transformations
}
}
}
}
function draw() {}