Josh Beckwith

Results 73 comments of Josh Beckwith

Does this absolutely need to exist as a web page? Or would you be open to an alternative approach? I recently wrote an Electron app that used html/css/js for the...

This would be a question for the p5.js folks.

Why don't you just cache the reference to the seriously instance (maybe even the target canvas), and not destroy it? You can update the nodes to reflect the new inputs.

Ohhh this might enable me to make something like [Temporalis](https://positlabs.github.io/temporalis/), but in webgl.

Are you preloading the image? It should be drawn on the next frame. For that, you can do `requestAnimationFrame(yourCallback)`

I think a better question is "how can we use this in vanilla html / js?"

I like that approach. The plugins shouldn't need a reference to the main lib

UMD has some handy module wrappers. https://github.com/umdjs/umd

Have you tried `videoElement.remove()`? I'm wondering if the video actually needs to be in the dom, or if it can just exist in memory.

I'm having trouble seeing what the issue is. You want to feed 1 of 3 videos into a seriously graph, right? You can easily write a method for managing which...