How can we help?

Can I write ProcessingJS programs inside the webpage environment?

Updated

Yes, you can write ProcessingJS programs inside our webpage environment. This is something you may want to do if you're adding buttons, input fields, or other interactive elements using HTML tags.

Here's a template that shows how to do that, plus an article that describes the differences between the code that will work inside the ProcessingJS environment versus the webpage environment.

Generally, it is best to use the dedicated ProcessingJS environment to develop ProcessingJS programs, since we provide special error checking and other code helpers just for ProcessingJS. 

One approach is to develop your programs in the ProcessingJS environment first and then move them over to the webpage environment.