Hacker News new | ask | show | jobs
by chillingeffect 4297 days ago
The graphics are excellent.

I'm curious about the code organization: it seems that processing.js contains both the application code for the clock as well as the libraries for interpreting the Processing code. Is that true? Is that the best organization? Would it not be better to have have a processing.js which is the interpreter/libraries and a bezier_clock.js?

1 comments

Per the Processing.js site, you include the processing.js file and then set an attribute on the canvas showing where to get the PDE file (your code). In this case they set it to: data-processing-sources="bezier_clock.pde"

Making the sources to the clock available here: http://jackf.net/bezier-clock/bezier_clock.pde

Ah! I see now. Thank you very much for explaining that.