(url)
| 11 | import { Color } from "../color/p5.Color"; |
| 12 | |
| 13 | async function urlToStrandsCallback(url) { |
| 14 | const src = await fetch(url).then((res) => res.text()); |
| 15 | return new Function(src); |
| 16 | } |
| 17 | |
| 18 | function withGlobalStrands(p5, cb) { |
| 19 | const prevGlobalStrands = p5._runStrandsInGlobalMode; |