mirror of
https://github.com/processing/processing4.git
synced 2026-02-02 13:21:07 +01:00
js mode example: render node tree graph
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
// wait for document to load
|
||||
window.onload = function () {
|
||||
tryFindSketch();
|
||||
}
|
||||
|
||||
function tryFindSketch () {
|
||||
var sketch = Processing.instances[0];
|
||||
if ( sketch == undefined )
|
||||
return setTimeout(tryFindSketch, 200);
|
||||
|
||||
sketch.setTree( document.body.parentNode );
|
||||
}
|
||||
Reference in New Issue
Block a user