xxxxxxxxxx
17
var acceleration = 0.0098;
var nDrops = 1000;
var drops = [];
function setup() {
createCanvas(640, 480);
for (i = 0; i < nDrops; i++) {
drops.push(new Drop());
}
}
function draw() {
background(230, 230, 250);
drops.forEach(function(d) {
d.drawAndDrop();
});
}