TERRAPAIN LOGO

Commands

  1. fd: fd 2 
  2. bk: bk 3
  3. lt: lt90
  4. rt: rt 180
  5. setpc: setpc 0 0 2 
  6. setbg: setbg 255 0 2 
  7. stampoval: stampoval 3 5
  8. repeat: repeat 2[ fd 34 lt 90 fd 34 lt 90]

What each command does

  1. fd - fd moves forward the amount of steps you input in. fd 2 moves forward two steps.
  2. bk - bk moves backward the amount of steps you input in. bk 3 moves forward two steps.
  3. lt - lt turns left the degrees you put. lt 90 turns left ninety degrees.
  4. rt - rt turns right the degrees you put in. rt 180 turns right one hundred eighty degrees
  5. setpc - setpc puts the foreground color the three numbers you choose like setpc 0 0 2
  6. setbg - setbg puts the background color the three numbers you choose like setbg 255 0 2
  7. stampoval - stampoval  draws a circle or an oval. The first number in stampoval is the height and  the second the width.
  8. repeat - repeat repeats the code in the brackets the number of times before the bracket. In repeat 2[fd 34 lt 90 fd 34 lt 90] it repeats the code in the brackets two times.

Comments

Popular posts from this blog

My Summer

Thoughts on LLMs and Modeling

A Realization