We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
always confused how to start on a forum.
A newbie question - How do I convert a .js file into a .pde after I downloaded a sketch from openprocessing sketches which is in javascript format.
Thanks a lot in advance. Raj
".pde" files use Java syntax. ".js" files are JavaScript syntax.
Those OpenProcessing ".js" files are written for a Processing spin-off called p5.js: http://p5js.org/reference/
It's incompatible w/ Processing's default Java Mode: https://Processing.org/reference/
You can read this article below in order to know some of their differences: https://GitHub.com/processing/p5.js/wiki/Processing-transition
Answers
".pde" files use Java syntax. ".js" files are JavaScript syntax.
Those OpenProcessing ".js" files are written for a Processing spin-off called p5.js:
http://p5js.org/reference/
It's incompatible w/ Processing's default Java Mode:
https://Processing.org/reference/
You can read this article below in order to know some of their differences:
https://GitHub.com/processing/p5.js/wiki/Processing-transition