matiasvlevi / lu5

Lua interpreter for Creative Coding
https://matiasvlevi.github.io/lu5/
MIT License
30 stars 2 forks source link

support html5 #4

Open RodrigoDornelles opened 2 weeks ago

RodrigoDornelles commented 2 weeks ago

Support for browsers would be interesting, rendering via canvas and using webassembly.

matiasvlevi commented 2 weeks ago

Yes, definitely.

We would need a js canvas/webgl (canvas for 2D, webgl for 3D) implementation for most of the lu5 bindings. You might find site/static/js/lu5.js which purpose was to re-implement most of the lu5 bindings. The script is not connected to any website pages at the moment, it is also incomplete since I deemed this not a priority.

We would also need a way of compiling to wasm. That might take a little more research on my side to be done right.

Ill add a mention of this in the ROADMAP.md