Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

LOGO and Turtle Graphics

Name: Anonymous 2012-10-07 17:31

I'm sure you all have fond memories of being a 7-year-old child programming in LOGO at school (at home we mostly used BASIC and Z80 or 6502 ASM). I remember that some spoiled rich kid even had a real turtle, like this one http://www.obsolete-tears.com/hist/promobile/tortue.jpg

So, here's a small LOGO program:

to shitbrix :angle
repeat 4 [ fd 30 rt :angle  fd 10 rt :angle fd 20 lt :angle fd 10 lt :angle fd 20 rt :angle]
end


If you call it with the parameter 90, it draws:

shitbrix 90
 _   _____ 
| | |  ___|
| |_| |___
|____  _  | 
 ___| | | |
|_____| |_|


With parameter 120 it draws:

shitbrix 120

        -
   ___ /_\____
   \  /   \  /
    \/     \/
    /\     /\
   /__\___/__\
       \ /
        -


Online LOGO interpreter, try it:
http://www.calormen.com/logo/

Name: Anonymous 2012-10-08 15:24

>>30

For which it is almost entirely useless. Well, unless you call drawing on html5 canvases with javascript graphics programming, perhaps, and even then, LOGO is useless.

It's fun to play with, though.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List