First I tried with drawing programs, but couldn't make the rectangle a square and the circle non-oval. Then I remembered imagemagick, I have it installed and mostly use it to resize images - but it can do much more. A quick look at the examples and some trial and error, and here's the result.
And here's the script that generated it:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Generate "Bounding Box Diagonal" image | |
convert \ | |
-size 400x400 \ | |
xc:skyblue \ | |
-fill red \ | |
-draw "circle 200,200 0,200" \ | |
-stroke black \ | |
-strokewidth 2 \ | |
-draw "line 0,0 400,400" \ | |
-stroke skyblue \ | |
-pointsize 40 \ | |
-draw "rotate 45 text 250,10 \"bbd\"" \ | |
bbd.png |