Using Tabbed Thumbnail Processing in JS Processing

I have a processing sketch that I would like to display on my site using Process.js and not as a Java applet, however I'm not sure if it supports tabs - or classes. Do I need to write it as a procedural script, or is there <include>one that I can use, or another option?

thank

+3
source share
2 answers

I answered Handling a related question and used classes, but I just inserted the class after the rest of the program. I do not know if this will fully answer your question, but here is an example

Processing sketch preview

+3
source

.pde html canvas,

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

: http://processingjs.org/reference/articles/jsQuickStart

+7

Source: https://habr.com/ru/post/1784418/


All Articles