Drawing with mouse events using DOM API. Adopted from MDN examples.
v -b js_browser examples/js_dom_draw/draw.v
Then you can open index.html with your favourite browser.
index.html