Jason (jcreed) wrote,
Jason
jcreed

Heh. dfontaine was hacking a postscript sierpinski triangle as an exercise, and wrote it up on the whiteboard. Intentionally tweaking the rotations makes %!PS-Adobe 3.0

20 dict begin
280 280 scale
newpath
/tri{
dup 0 gt
{ 1 sub 0.5 0.5 scale 120 rotate
1 0 rlineto tri
1 0 rlineto -118 rotate 1 0 rlineto tri
1 0 rlineto -120 rotate 1 0 rlineto tri
1 0 rlineto 120 rotate 2 2 scale 1 add} if
} def
1.1 0.1 moveto
-1 0 rlineto 60 rotate 2 0 rlineto -120 rotate
2 0 rlineto 60 rotate -1 0 rlineto 7 tri

1 480 div dup scale
stroke
end
showpage
. I love how errors in graphics are as often as not not all that erroneous.
Subscribe

  • (no subject)

    Some further progress cleaning up the https://xkcd.com/1360/ -esque augean stables that is my hard drive. Tomato chicken I made a couple days ago…

  • (no subject)

    Did some personal archaeology. Helped a little with laundry. Threw some chicken, onions, tomato, stock, peppers in the slow cooker and hopefully…

  • (no subject)

    Dinner with akiva and dannel at nuevo portal in carroll gardens. Ate a pile of chicken stew and rice and beans and maduros, good times. I do miss…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 4 comments