Simple drawing with hxDaedalus allows you to use simple draw commands the same way across a range of target structures. ( NME/Openfl, Flambe, Luxe, JS, SVG, Java Swing ).
Requires:
On windows you can just run
haxe compileAll.hxml
and it will create a range of targets.