xxxxxxxxxx
23
// Flow / Variables
// Code! Programming with p5.js
let circleX = 100;
function setup() {
createCanvas(400, 300);
}
function mousePressed() {
circleX = 0;
}
function draw() {
background(255, 189, 200);
stroke(255,0,0);
strokeWeight(6);
fill(255);
circle(circleX, 150, 64);
circleX += 1;
}