How can I move those 6 rectangles. I think i have to change the X and the Y for the loop, but I don't know how. I would love some help.
This is the code: https://editor.p5js.org/AlexArek/sketches/r1eVquBkV
let cols = 3;
let rows = 3;
function setup() {
createCanvas(600, 600);
}
function draw() {
background(90, 140, 210);
for (let i = 0; i < cols; i++) {
for (let j = 0; j < rows; j++) {
let x = i * 110;
let y = j * 110;
noFill()
rect(x, y, 100, 100)
}
}
//How can I move this whole thing in the middle of the screen?
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.6.1/p5.js"></script>