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:
- black
- blue
- lime
- cyan
- red
- magenta
- yellow
- white
- brown
- tan
- green
- aquamarine
- salmon
- purple
- orange
- gray
The setcolor command supports both those numbers and any web color or RGB in #rrggbb format
| |