xxxxxxxxxx
30
let yLocation = 300
let alreadyOutTop = false
function setup() {
createCanvas(600, 600);
// background("red");
}
function draw() {
background("pink");
fill("blue")
circle(300,300,298);
fill("purple");
circle(300,300,200);
fill("yellow")
circle(300,yLocation,100)
if(yLocation == -3){
alreadyOutTop = true
yLocation = 600
}
if(alreadyOutTop && yLocation == 300){
// don't do anything
}
else
yLocation = yLocation - 1
}