xxxxxxxxxx
let flower;
let tileSize = 100;
function preload() {
flower = loadImage('flower.png');
}
function setup() {
createCanvas(600, 800);
background(255);
for (let y = 0; y < height; y += tileSize) {
for (let x = 0; x < width; x += tileSize) {
fill(168, 50, 125);
circle(x + tileSize / 2, y + tileSize / 2, tileSize);
stroke(128, 0, 128); //
circle(x + tileSize / 2, y + tileSize / 2, tileSize * 0.75);
}
}
let imgWidth = 200;
let imgHeight = 200;
image(flower, width/2 - imgWidth/2, height/2 - imgHeight/2, imgWidth, imgHeight);
}