diff options
author | Nat Lasseter <Nat Lasseter nathan@bytemark.co.uk> | 2017-06-29 10:43:18 +0100 |
---|---|---|
committer | Nat Lasseter <Nat Lasseter nathan@bytemark.co.uk> | 2017-06-29 10:43:18 +0100 |
commit | 262e265e8c65b46f2c6e77ed38d353794fff695c (patch) | |
tree | e405a912fdfafd301d01db752cdedee63918dc12 /sketch.js | |
parent | 922f1ef4b4ef0033f779e45dafd74595672f3de7 (diff) |
Changed bumpers to triangles and made sure on top
Diffstat (limited to 'sketch.js')
-rw-r--r-- | sketch.js | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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); } |