aboutsummaryrefslogtreecommitdiff
path: root/sketch.js
diff options
context:
space:
mode:
Diffstat (limited to 'sketch.js')
-rw-r--r--sketch.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/sketch.js b/sketch.js
index 30bbca9..473c192 100644
--- a/sketch.js
+++ b/sketch.js
@@ -13,6 +13,10 @@ function setup() {
function draw() {
background(0);
+ stroke(0);
+ fill(100);
+ text("frames=" + round(frameRate()) + " particles=" + ps.length, 10, 20);
+
for(var i = ps.length - 1; i >= 0; i--) {
ps[i].applyForce(gravity);
ps[i].applyDrag(air_resistance);