From 262e265e8c65b46f2c6e77ed38d353794fff695c Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Thu, 29 Jun 2017 10:43:18 +0100 Subject: Changed bumpers to triangles and made sure on top --- sketch.js | 10 +++++----- 1 file 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); } -- cgit v1.2.1