An underrated way to draw images (at least stills) programmatically is probably (PPM)[http://netpbm.sourceforge.net/doc/ppm.html]. It doesn't get much simpler than that. The main drawbacks are that now you have to have an image viewer next to your code (Preview isn't the most glorious of programs but gets the job done) and the files are *giant*.
@jcmorrow afaik the suckless people made one that's simpler and more suited for pipeline processing
Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them. Check out our Patreon to see our donations.