xxxxxxxxxx
23
var xpositions = [143, 88, 97, 210,13];
xpositions[5] = 314;
function setup() {
createCanvas(400, 400);
background(255, 255, 240);
}
function draw() {
// can you draw circles using the other values of the array xpositions?
fill(255, 0, 0);
ellipse(xpositions[0], 200, 10, 10);
fill(0, 255, 0);
ellipse(xpositions[3], 200, 10, 10);
fill(0, 0, 255);
ellipse(xpositions[5], 200, 10, 10);
}