A relatively simple Processing script fails in both the 2.0 IDE's Javascript mode and in browsers (via Processing.JS) for reason unknown. I'm pretty sure the same problem is stopping both methods. I've isolated a line that causes the failure and illustrated in the following pages:
- Test1.html is a cut-down version of the project script that works
- Test2.html demonstrates how Test1 fails when a single extra command is called (line 93), although it works fine in IDE's Java mode. The offending line only seeks to re-print info that was already successfully printed in
void setup(){}, hence my confusion.
All scripts are viewable here but the key line in Test2.pde is in void drawLinks().
Any idea what is causing this? I've wasted so many hours on this now! Its possible to just copy/paste the Test2.pde script into a new Processing 2.0 IDE to play around with it in Java and Javascript modes..