BedroomLANTilde~A: Alexios' HomepageSearch |
![]() |
||
Signature BefungeOne of my email signatures looks like this:
=----------------------------------------------= 64*>:00p258**44$$^>4$,1-:#v_v | Alexios Chouchoulas, the Unpronounceable One | 4$#^; BEFUNGE97 ;^#_@#:-1$>#< | http://www.vennea.demon.co.uk/ | 4*2-*26g00*:-*58:<vg3/*48+*:$ =-----=[ ‘Eimai mia micri soupiera’ ]=-----= #@@@ooo:::... . . . The block of characters to the right is a Befunge 97 program (it even has a comment in it saying so). It's been slightly compacted and made just a bit more obfuscated than it had to, but I like it. SourceHere's the isolated Befunge 97 code: 64*>:00p258**44$$^>4$,1-:#v_v 4$#^; BEFUNGE97 ;^#_@#:-1$>#< 4*2-*26g00*:-*58:<vg3/*48+*:$ #@@@ooo:::... . . . OutputExecuted with a suitable Befunge 97 interpreter on an 80-column display, it prints this:
. .. .. .
. . ........... . .
. . .. ....... .. . .
. . . ................... . . .
. . . .....:::::::::::::::..... . . .
. ...::::::ooooooooooo::::::... .
. ...:::::ooooooooooooooooo:::::... .
. ...:::oooooo@@@@@@@@@@@oooooo:::... .
. . . ...:::ooooo@@@@@@@@@@@@@@@ooooo:::... . . .
. ...:::oooo@@@@@@@@@@@@@@@@@@@oooo:::... .
. . . ..:::oooo@@@@@@@#######@@@@@@@oooo:::.. . . .
. . ...:::ooo@@@@@@###########@@@@@@ooo:::... . .
. . ...:::ooo@@@@@@###########@@@@@@ooo:::... . .
. . ...:::ooo@@@@@@###########@@@@@@ooo:::... . .
. . . ..:::oooo@@@@@@@#######@@@@@@@oooo:::.. . . .
. ...:::oooo@@@@@@@@@@@@@@@@@@@oooo:::... .
. . . ...:::ooooo@@@@@@@@@@@@@@@ooooo:::... . . .
. ...:::oooooo@@@@@@@@@@@oooooo:::... .
. ...:::::ooooooooooooooooo:::::... .
. ...::::::ooooooooooo::::::... .
. . . .....:::::::::::::::..... . . .
. . . ................... . . .
. . .. ....... .. . .
. . ........... . .
Theory of OperationThe thing calculates the distance of each character from the centre of the screen using the Pythagorean theorem (sans square root), then picks a character to draw. The characters used for drawing are on the bottom row of the program. They can all be redefined. Well, all but the one below the It's 29×4 bytes including data, with space to spare, but it only works on 80-column displays as it doesn't print any newline characters. You can easily adjust it. Actually finding the constants is left as an exercise for the advanced (and somewhat insane) reader. |
|
|
|
Comments
Actually, the one to the right of that (under the v) must also be one of two values: space or v.
Very good point, thanks for the comment!