Abenteuer aus tausend und einer Nacht.

#! /bin/bash                                                                                         

width=22
text=0110110011011101111001011010110101110111011\
000001000010111011101100110101101011101110110011\
0101101000100011001

(
textlen=$(echo -n "$text" | wc -c)
height=$((textlen/width))
echo new $((8*width)),$((8*height))
echo fill 10,10,255,255,255
j=0; while [ "$j" -lt "$height" ]; do
i=0; while [ "$i" -lt "$width" ]; do
ftext=${text:0:1}
text=${text:1}
if [ "$ftext" "=" "0" ]; then
echo frect $((8*i)),$((8*j)),$((8*i+8)),$((8*j+8)),0,0,0;
fi
((i++))
done
((j++))
done
echo output hi.gif
) | flydraw