diff --git a/main/main.pde b/main/main.pde index 0be5e5d..e2f0e10 100644 --- a/main/main.pde +++ b/main/main.pde @@ -89,7 +89,8 @@ public void setup() { (new Face(h12, list)).printFace(); } void draw() { - drawgraph.drawGraph(list.getPoints()); + background(255,255,255,0); + drawgraph.drawGraph(list.getPoints()); } void keyPressed() { switch (key) { @@ -156,11 +157,13 @@ public void insertMode(float x, float y) { } public void removePointMode(float x, float y) { - boolean removePoint= false; + System.out.println("entered remove point"); + boolean removePoint = false; Point removeThis = null; for(Point p: list.getPoints()) { - if((p.getX() - 10 < x) && (p.getX() + + 10 > x)) { + if((p.getX() - 10 < x) && (p.getX() + 10 > x)) { if((p.getY() - 10 < y) && (p.getY() + 10 > y)) { + System.out.println("point found"); removeThis = p; removePoint = true; }