In the following post @joojaa writes out the math function for the artwork shown here:
His code is specifically in PostScript, which is awesome...but I'm wondering if this can't be converted to Javascript specifically to be written as an Illustrator script. I've tried it myself with no luck.
var t = 1000; //not sure what 't' should be other than a number var e = a.pathItems.ellipse(20*Math.cos(t)-10*Math.sin(5*t+Math.PI/2), 20*Math.sin(t)+10*Math.cos(5*t+Math.PI/2)); e.stroked = true; e.filled = false;
The code actually does generate an ellipse but its def not correct.
Any ideas on how to draw a math function for Illustrator using scripting?