xxxxxxxxxx
18
function setup() {
createCanvas(370, 370);
noLoop();
}
function draw() {
background(200);
noStroke();
fill(252, 3, 152);
for(let i = 0; i < 6; i++) {
let x = 10 + i*60;
let y = 10; // j
console.log("i je: " + i + ", x koordinata je: " + x);
rect(x, y, 50, 50);
}
}