SVG might work better, created the following format for potential use in a Java program.
<!-- image document that is 1920 by 1080 pixels with a black background (RGB=(0,0,0)) !-->
<image width="1920" height="1080" backgroundColor="0,0,0">
<!-- draw a blue horizontal line that is 100 pixels long -->
<element x="0" y="0" quantity="100" rgb="0,0,255"/>
<!-- draw a 10 px by 10 px red box with 5 px of blue on each side -->
<repeatY increment="1" quantity="10">
<element x="0" y="1" quantity="5" rgb="0,0,255"/>
<element x="5" y="1" quantity="10" rgb="255,0,0"/>
<element x="15" y="1" quantity="5" rgb="0,0,255"/>
</repeatY>
</image>
Human readable, Human discernible, and Human comprehendible combined with low cost to implement are all factors worthy of consideration.