xxxxxxxxxx
26
let circleX = 250;
let circleSize = 50;
let counter = 0;
function setup() {
createCanvas(500, 500); // this is my canvas!
}
function draw() {
//background(220);
fillColor = color(255, 0, 0);
fillColor.setAlpha(100);
fill(fillColor);
noStroke();
circle(circleX, 250, circleSize);
}
function keyPressed() {
circleX += 25;
circleSize += 50;
counter++;
// save an image
//saveCanvas("frame_" + counter, "png");
}