float[] x = new float[105]; float[] y = new float[105]; float segLength =1; void setup() { size(200, 200); smooth(); strokeWeight(50); stroke(0, 5); } void draw() { background(255); dragSegment(0, mouseX, mouseY); for(int i=0; i