Processing js: .pde or .pjs?
in
Processing with Other Languages
•
1 year ago
While looking at examples of processing.js on the web, I have noticed that both .pde and .pjs file formats have been used for processing sketches. Could someone please explain the difference to me between using these two formats? Are there pros and cons to each? I have been developing in the javascript mode of the processing IDE, which defaults to .pde. If I were to change to .pjs, would I no longer be able to run from the processing IDE? Is it possible to call straight javascript functions when using .pjs? I have seen people call functions like window.innerWidth in pjs files, but am not sure how much javascript can be used.
Any insight would be greatly appreciated! :)
1