I am trying to run multiple thumbnails on one page.
The init script states that:
/*
* This code searches for all the <script type="application/processing" target="canvasid">
* in your page and loads each script in the target canvas with the proper id.
* It is useful to smooth the process of adding Processing code in your page and starting
* the Processing.js engine.
*/
When I specify the target canvas of each sketch, it does not work:
<script type="application/processing" target="canvas1">..</script>
<script type="application/processing" target="canvas2">..</script>
<canvas id="canvas1".. />
<canvas id="canvas2".. />
but doesn't it work? is it even possible? Any help is appreciated. Im trying to have a document with built-in canvas elements that perform thumbnails in sync with each other.
source
share