How can I use Haxe to make a drawing (I need to programmatically specify lines, maybe other shapes, and some text, providing x and y coordinates, sizes, etc.) and then save it as an image file (possibly png or ppm) on disk?
I don’t need a GUI — this is for a command line program.
If what you need is “lines, circles and text,” I think that SVG is always the best way to go because it will be rendered on-the-spot based on the vector-graphics drawing commands contained in the file. The files are tiny, and the output resolution is of course as high as it can be.