feat: incrementally add elements to sketch in draw
This commit is contained in:
parent
63dfa62ffd
commit
de5d35a03f
2 changed files with 17 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
export var p5;
|
||||
export var p5vector;
|
||||
export var p5loaded = new Promise(async function(resolve, reject) {
|
||||
var success = false;
|
||||
try {
|
||||
|
@ -13,5 +14,6 @@ export var p5loaded = new Promise(async function(resolve, reject) {
|
|||
catch {}
|
||||
console.log('Used local fallback for p5'); }
|
||||
p5 = window.p5;
|
||||
p5vector = window.p5.Vector
|
||||
delete window.p5;
|
||||
if (success) { resolve(); } else { reject(); }});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue