make all
./horton A B C D
A
, B
, C
and D
are numeric arguments.
./try.sh
This confuses cb greatly. See horton.alt.c for an unobfuscated/enhanced version.
make alt
./horton.alt A B C D
Where A, B, C and D are numbers like with horton
.
./try.alt.sh
Try to figure out how this program prints, for a given slope, the right character. And for extra credit, try to figure out which character is at the bottom of this hint file. :-)
You might be interested in the author’s article that they cite towards the end of their remarks, included as PDF files for your convenience, the full newsletter and a PDF file of just the pages cited.
Run it with any 4 numeric arguments, e.g. ./horton 3 2 1 0
. Play with the
numbers to get a pleasing result, or use it for your high school algebra
class.
As should be obvious from 20 feet away, the program is a cubic plotter. It plots against certain artists, splattering their cubes with graphs of their cubic equations. Those dastardly arguments are mere coefficients, cogs in the wheels of the grand plot to overthrow the cubics!
Oh, by the way, it uses a self-contained graphtab and frame buffer. It’s easily modified to graph any 96x160 bitmap on a dumb terminal.
See the gtface program for another example. Try:
make gtface
./gtface < gtface.data
For more information, see my article
Using GraphTab; USENIX ;login: Sept/Oct 1992, pages 28-31.
MMMM,M,MM"MM,,,
,,MMMMMMMMM"""""""",
,MMMMM""" ",
,MMM" "
MMM M
MM
MM" " M
M " , ,,,,, ,,,,,,,,,MM
"MMMM"M,MMMMM MMMM M M"MMM,
,M"MMMM"MM"MMM""M""MMMM""M"M
, MM M M,M M" "M",, M "M "
M ,M," ,M "M, ,,,", M
M , M"MMM",,M,M,,""" , ,
",," , " "MMMMMMMM " , "
,M , ""M,MMMMMMMM,M " ,,
,MM, MMMMMMMMMMMMMM,", M,
M,M,MM"M"M" """M"MM,M M
,MMMMMM M,MMMMM"M MM""M
M MMMMMM,M M"M"" M MMMM", ,
"M"MMMMMMMMMM"M ,MMMMM M ,,
"" MMMMMMM,M,MM,M,,,MMM"M ,
," , "MMMMMMM"MM"M,,,,MMMMM , ,,
M ," MMMMMM"MM""M ,MMMMM,M, M
, MMMM,MMMM"M"M"M,MM,M,", "