Skip to content

igalshapira/vsturtle

Repository files navigation

VsTurtle README

VsTurtle is a simple extension for VS Code to write Logo Turtle commands.

Supported Commands

Command Short Description Example
Home
Forward fd Move turtle forward forward 100
Left lt Turn left left 90
Right rt Turn right right 90
setheading seth Set turtle direction setheading 45
back bk Move turtle back back 100
setx, sety, setxy Set turtle position set xy 10 20
clean, clearscreen cs Clear screen and return to home
penup pu Pen up - turtle will not draw when moving
pendown pd Pen down - turtle will draw when moving
setcolor, setpencolor See below setcolor green
setwidth, setpensize set width 3
circle Draw a circle circle 10
showturtle st
hideturtle ht
; Comment Any line that starts with ; is treated as comment and ignored

Colors

Original Logo colors are:

  1. black
  2. blue
  3. lime
  4. cyan
  5. red
  6. magenta
  7. yellow
  8. white
  9. brown
  10. tan
  11. green
  12. aquamarine
  13. salmon
  14. purple
  15. orange
  16. gray

The setcolor command supports both those numbers and any web color or RGB in #rrggbb format

For more information