3 ms·
>[dynamic images in general] Canvas elements already exist. >But this opens up another interesting avenue: It's very easy to return a different image while yo
by AgentME 8y ago
>[dynamic images in general]
Canvas elements already exist.
>But this opens up another interesting avenue: It's very easy to return a different image while you're waiting for the original to load. Meaning there is no async/await -- no waiting at all. You just write code in the natural, blocking way. No callback hell or promise chains.
Can't you use canvas elements from web workers? Or you could post messages to the UI thread telling it to edit the canvas, which should get you the same effect.
None of this seems specific to WebAssembly.