// -------------------------------------------------------- public PShape form() { PShape f; f = createShape(); f.beginShape(); f.noFill(); f.stroke(0, 255, 0); f.strokeWeight(5); f.strokeJoin(ROUND); f.curveVertex(position.get(0).x, position.get(0).y); for (PVector p : position) f.curveVertex(p.x, p.y); f.curveVertex(position.get(position.size() - 1).x, position.get(position.size() - 1).y); f.endShape(); return f; }