-1

I downloaded processing.js in my pc, but im not sure if it is possible to write pure javascript code in it. basicly my question is, can i write processing.js code and javascript code in the same file?.

1 Answers1

0

Yes, you can mix Processing and JavaScript using Processing.js.

From the Processing.js quick start guide:

Because Processing.js converts Processing code to JavaScript, it's also possible to mix them directly. The Processing.js parser will leave JavaScript it finds within the Processing code unaltered, allowing developers to write a hybrid of Processing and JavaScript.

Why wouldn't you just try it out and see what happens?

Kevin Workman
  • 41,537
  • 9
  • 68
  • 107