Exported a 20x20 1-bit BMP from GIMP. It has a 45 rotated square in the middle and a pixel in each corner.
Here it is in bash...
Here it is in bash...
Code:
tail -c +62 1bit-diamond-20x20.bmp | hexdump -v -e '/1 "%u\n"' | xargs -I {} echo -e "obase=2\n{}" | bc | xargs printf "%8s" | sed 's/[0 ]/_/g' | while read -n 32 row ; do echo "$row" ; done
__________1111111111111111______
__________1111111111111111______
________11111111111111111111____
________11111111111111111111____
________111111111__111111111____
________11111111____11111111____
________1111111______1111111____
________111111________111111____
________11111__________11111____
________1111____________1111____
________1111____________1111____
________11111__________11111____
________111111________111111____
________1111111______1111111____
________11111111____11111111____
________111111111__111111111____
________11111111111111111111____
________11111111111111111111____
__________1111111111111111______
__________1111111111111111______