class Line { ArrayList points; Line() { this.points = new ArrayList(); } void draw() { stroke(255); noFill(); strokeWeight(3); beginShape(); for (PVector p : points) { vertex(p.x, p.y); } endShape(); } }