class Path { ArrayList<Vec3D> points; float radius = 20; Path() { points = new ArrayList<Vec3D>(); } void addPoint(float x, float y) { Vec3D point = new Vec3D(x, y, 0); points.add(point); } //------------------------------------------------------------------------------------------- //---------------------------------------Draw the Path--------------------------------------- //------------------------------------------------------------------------------------------- void display() { // Draw thick line for radius stroke(175,0,0,50); strokeWeight(radius*2); noFill(); beginShape(); for (Vec3D v : points) { vertex(v.x, v.y); } endShape(); // Draw thin line for center of path stroke(255); strokeWeight(1); noFill(); beginShape(); for (Vec3D v : points) { vertex(v.x, v.y); } endShape(); } } Update