XLogo LOGO Commands
Other help sections: [ How to use XLogo ] [ LOGO History ] [ About XLogo ]

  The basic LOGO commands are:
  • FORWARD x
  • BACKWARD x
  • RIGHT x
  • LEFT x
  • PENUP
  • PENDOWN
  • HOME - go back to (0,0)
  • CLEAR - clear the screen
  • REPEAT x [command]
The letter "x" above should be replaced by a number representing the number of spaces to move (in the case of FORWARD and BACKWARD commands), the number of degress to turn (in the case of RIGHT and LEFT), or the number of repetitions (REPEAT command).

  Advanced commands:
  • NEWTURTLE "name - create a new turtle, with a name
  • TALKTO "name - send commands to a specific turtle
  • MAKE "name [value] - create a variable with a value
  • SETCOLOR :[color|variable] - set the drawing color
  • SETBG :[color|variable] - set the background color

  Sample Code:
  1. newturtle "Fred
  2. talkto "Fred
  3. setcolor :10
  4. make "bgcolor 123
  5. setbg :bgcolor
  6. forward 100
  7. right 90
  8. repeat 4 [forward 100 right 90]