xxxxxxxxxx
23
function setup() {
createCanvas(300, 300);
rectMode(CENTER);
}
function draw() {
background(1, 186, 240);
// declaration of variables
let x = width / 2;
let y = height / 2;
// increment the size with the current frameCount value
let size = 200 + frameCount;
// circle
fill(237, 34, 93);
noStroke();
ellipse(x, y, size, size );
// rectangle
fill(255);
rect(x, y, size*0.75, size*0.15);
}