// UdK Computational design // Marius Watz 2003 // http://www.evolutionzone.com/udk/ // // UDK03_03_mouse // // Use vectors to store mouse positions. // Calculate the total distance of the mouse movement // and use this value to modify another shape. Vec2D v[],D; int num=50; float dist; void setup() { size(400,400); ellipseMode(CENTER_DIAMETER); v=new Vec2D[num]; for(int i=0; i0; i--) v[i].set(v[i-1]); v[0].set(mouseX,mouseY); noStroke(); fill(255,0,0); stroke(255,0,0); for(int i=0; i