v/examples/js_dom_draw
Daniel Däschle 54bbc00493
fmt: remove space in front of ? and ! (#14366)
2022-05-13 10:10:39 +02:00
..
README.md js: fix interfaces behaviour & disable struct deep copy for now (#12333) 2021-10-29 11:23:40 +03:00
draw.js.v fmt: remove space in front of ? and ! (#14366) 2022-05-13 10:10:39 +02:00
index.html js,jsdom: Canvas & context API; Added TypeSymbol.is_js_compatible & temporary hacks for JS ifaces (#12526) 2021-11-20 21:28:11 +02:00

README.md

Drawing with mouse events using DOM API. Adopted from MDN examples.

Compiling

v -b js_browser examples/js_dom_draw/draw.js.v

Then you can open index.html with your favourite browser.