xxxxxxxxxx
20
// The Nature of Code
// Daniel Shiffman
// http://natureofcode.com
// Example 1-2: Bouncing Ball, with p5.Vector!
let b1;
let b2;
function setup() {
createCanvas(640, 360);
b1 = createBall();
b2 = createBall();
}
function draw() {
background(255);
b1.update();
b1.display();
}