You are writing a comment about Using Javascript to Control Processing, here is a quick summary:
A look at translating Processing code to use Javascript as a control language and Processing.js to handle the hard stuff.
You are responding to this comment written by Thomas B. Higgins on January 28th 2010, 23:10.
I have just finished writing a set of Processing.js sketches. They are parametric drawings controlled by HTML form field entries. For control, I am using jQuery and common JavaScript in the head, in the main JS block (for some data updated by AJAX) and intermingled with the Java-syntax Processing.js code.
I can see a number of reasons to use JavaScript as you do here:
Better control. The Processing.js language's mouse commands only work when clicked within the sketch. What if you click a checkbox? The way you are showing here, the response should be immediate and satisfying.
Minification and obfuscation are unavailable with Processing.js.
Easier consolidation and more direct rendering of drawing script blocks to the page, depending on the specifics of the case.
Who is working on a library for this?
Would you be interested in a side conversation on this subject?
Please be aware that comment forms go stale after one hour.
Comments may make use of LifeFlow MarkDown. Raw html will be escaped.
Quick Introduction to LifeFlow MarkDown Syntax
A highlighted code block:
Other common languages work as well: scheme, python, java, html, etc.
Other markdown syntax: