Moves the turtle x points
The turtle back x points
Rotate the turtle left x degrees
Rotate the turtle left x degrees
Will clear the screen and return the turtle home
The turtle will not leave a trail
The turtle will leave a trail
Will set the waiting time to x milliseconds
Will cause the turtle to wait before executing the command
Will set the pen width to X
Hide the turtle
Show the turtle
Moves the turtle to center, pointing upwards
Move turtle to the specified location
Move turtle to the specified location
Rotate the turtle to the specified heading
Will create an arc distance RADIUS covering ANGLE angle
Will craete an ellipse width Width and height Height
Outputs the current turtle position as [ x y ], x or y respectively
Outputs the current turtle heading
Outputs the heading towards the specified [ x y ] coordinates
Repeat statements x times
Outputs the current iteration number of the current repeat or forever
Typical for loop. The controllist specifies three or four members: the local varname, start value, limit value, and optional step size
Define a new named procedure with optional inputs
Update a variable or define a new global variable. The variable name must be quoted, e.g. make 'foo 5
access the content of VARNAME
Create a new list from the inputs
Outputs the first item from the list
Outputs all the items of listname except for the first item
Outputs the last item from the list
Outputs all the items of listname except for the last item
Outputs the indexlist item of the list or array
Outputs one item from a list, at random
Will set the turtle color according to the following table
0: black | 1: blue | 2: green |
3: cyan | 4: red | 5: magenta |
6: yellow | 7: white | 8: brown |
9: tan | 10: green | 11: aqua |
12: salmon | 13: purple | 14: orange |
15: gray |
Will set the turtle color according to the amount of red , green and blue for example setcolor [50 100 50]
Does a paint bucket flood fill at the turtle's position
Execute statements without drawing but keeping track of turtle movements. When complete, fill the region traced by the turtle with fillcolor and outline the region with the current pen style
sum x y
return the distance between x and y
Will choose a random number between 0 - (x-1)
Outputs the remainder (modulus). For remainder and % the result has the same sign as the first input; for modulo the result has the same sign as a the second input.
Share on