开发者

Using Processing Sketches With Tabs In Processing JS

I've got a Processing sketch that I'd like to display on my site with Processing.js rather than as a Java applet, however I'm not sure it supports tabs - or classes. Does it need to 开发者_如何学Cbe written as procedural script, or is there an <include> I can use - or another option?

Thanks


You can also include multiple .pde files in the html canvas tag separated by spaces

<canvas data-processing-sources="hello-web.pde class.pde"></canvas>

mentioned near the top of this page: http://processingjs.org/reference/articles/jsQuickStart


I've answered a Processing related question and used classes, but I simply pasted the class after the rest of the program. I don't know if this fully answer your question, but here's an example

Using Processing Sketches With Tabs In Processing JS

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜