5
我試圖在同一頁上運行多個草圖。如何同時運行多個processing.js草圖
初始化腳本規定:
/*
* 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".. />
,但它不工作?這甚至有可能嗎?任何幫助將非常感激。我試圖讓一個文檔與內嵌畫布元素相互同步運行一個草圖。