【发布时间】:2009-12-16 22:43:55
【问题描述】:
我正在尝试在同一页面上运行多个草图。
初始化脚本指定:
/*
* 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.
*/
当我指定每个草图的目标画布时,它不起作用:
<script type="application/processing" target="canvas1">..</script>
<script type="application/processing" target="canvas2">..</script>
<canvas id="canvas1".. />
<canvas id="canvas2".. />
但它不起作用?这甚至可能吗?任何帮助将非常感激。我试图让一个带有内联画布元素的文档彼此同步运行草图。
【问题讨论】:
标签: processing.js