aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2017-06-29 10:43:18 +0100
committerNat Lasseter <Nat Lasseter nathan@bytemark.co.uk>2017-06-29 10:43:18 +0100
commit262e265e8c65b46f2c6e77ed38d353794fff695c (patch)
treee405a912fdfafd301d01db752cdedee63918dc12
parent922f1ef4b4ef0033f779e45dafd74595672f3de7 (diff)
Changed bumpers to triangles and made sure on top
-rw-r--r--sketch.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/sketch.js b/sketch.js
index 126edee..30bbca9 100644
--- a/sketch.js
+++ b/sketch.js
@@ -13,11 +13,6 @@ function setup() {
function draw() {
background(0);
- stroke(255);
- strokeWeight(4);
- line(0, 0.75*hei, 0.25*wid, hei);
- line(0.75*wid, hei, wid, 0.75*hei);
-
for(var i = ps.length - 1; i >= 0; i--) {
ps[i].applyForce(gravity);
ps[i].applyDrag(air_resistance);
@@ -47,4 +42,9 @@ function draw() {
p.applyForce(force);
ps.push(p);
}
+
+ strokeWeight(0);
+ fill(50);
+ triangle(0, 0.75*hei, 0.25*wid, hei, 0, hei);
+ triangle(0.75*wid, hei, wid, 0.75*hei, wid, hei);
}