xxxxxxxxxx
26
let timeMax = 100;
let timeCurrent = 0;
let sizeShape = 500;
let direction = 0;
let x = 200;
let y = 200;
let xDirection = 1;
let yDirection = 1;
let display = 1;
function setup() {
createCanvas(400, 400);
}
function draw() {
if(display){
background(220);
display = 0;
}
while(timeCurrent < timeMax){
circle(200, 200, 500 - timeCurrent*5)
fill(random(255))
timeCurrent += 1;
}
}