We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, How can I incorporated Processing 3 sketches in webpages?
I've tried inserting .pde and .jar sketches in Divs and Canvas elements. I get messages saying that neither format is supported in Chrome.
Thanks for your help.
Answers
https://GitHub.com/fjenett/javascript-mode-processing/issues/33
I simply can't understand why would any1 "need" Processing 3 in order to deal w/ "JS Mode".
AFAIK, PJS framework is still pretty stuck w/ Processing 1 API:
http://ProcessingJS.org/reference/
The developer of Processing.js plans on updating it to work with Processing 3. Nobody is sure when that will happen though.
Thanks, KevW. Anyone know about embedding Processing3.0 sketches in a web page?
It was so easy in Process2.x
You can't do that yet. You need to wait until Processing.js updates its compatibility.
Thanks again, KevW. I thought that might be the case, but wondered if there was an alternative solution in the interim. I shall just have to be patient :)
Think about it this way: Processing and Processing.js are actually two completely separate projects. The only thing they have in common is that Processing.js can convert Processing code into JavaScript code. However, that requires Processing.js to update every time Processing updates: Processing.js doesn't know how to use new features of Processing until those features have also been added to Processing.js. This causes Processing.js to lag behind Processing, since it's constantly catching up.
The alternative solution is to just use Processing 2 for now. What features of Processing 3 do you need?
Right now, I'm just exploring all its new features. I don't 'need' anything in particular. I was just experimenting. It looks like a brilliant update. I'm in love with Processing :x