Illustrator-to-Processing.js is a project mainly written in ..., it's free.
An Illustrator CS3+ script to export drawings as Processing code.
Illustrator drawing --> Processing code
Florian Jenett, 2008 - 2010
http://bezier.de/processing/ai2p/
Instructions:
- draw something in Illustrator
- save your drawing somewhere
- run menu command
File > Scripts > Other Scripts ...
- choose "AiCS2toProsessing.js"
[ .. script is running .. ]
- now there should be a ".pde" next to your ".ai"
- open the ".pde" in Processing and see if it worked