xxxxxxxxxx
23
let pola;
function preload() {
// Load the image asset
pola = loadImage('pola.jpg');
}
function setup() {
createCanvas(300, 300);
}
function draw() {
background(pola);
// Draw Circle 1
fill(0, 255, 0);
circle(100, 200, 80);
// Draw Circle 2
fill(0, 0, 255);
circle(200, 200, 80);
// Circle 3, dynamically placed
fill(255, 0, 0, 125); // Alpha channel sets transparency
circle(mouseX, mouseY, 80);
}