This is another small demo from my generative design class of the digi-pro project. It draws a Koch curve using a recursive algorithm at variable depth. The horizontal mouse position is used for the depth value. By pressing the p-key you may toggle the drawing of small point markers. The c-key will export the points to a simple CSV file. An example file for grasshopper shows how to read this points into the program.
[iframe http://download.j-raedler.de/Processing/KochCurve/KochCurve.html 100% 500px]