// Capturing pints for a new cure as it is drawn with the mouse pt lastCapturedTP = new pt(0,0); // remembers where mouse was last during capture boolean capturing=false; int maxnTP=20000; pt [] TP = new pt[maxnTP]; // captured points int nTP=-1; // number of captured points void initTP() {for (int i=0; i4) {TP[++nTP].setToMouse(); lastCapturedTP.setToMouse();};} void resetTP() {nTP=-1;} void drawTP() { beginShape(); for (int i=0; i