xxxxxxxxxx
13
//solution 1: let xpos be outside of the functions
let xpos = 200;
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
//soltion 2: let xpos be in the draw function
//let xpos = 200;
circle(xpos, 200, 100);
}