The Turtle Palette (green)
examples (1)
descriptions (1)
![TA-clean.png](/images/1/1b/TA-clean.png) |
Clean |
clear the screen and reset the turtle to center, pointed up (pen down, bright red)
|
![TA-forward.png](/images/3/3f/TA-forward.png) |
Forward (number) |
move turtle forward
|
![TA-back.png](/images/4/40/TA-back.png) |
Back (number) |
move turtle backward
|
![TA-left.png](/images/0/0c/TA-left.png) |
Left (angle in degrees) |
turn turtle counterclockwise
|
![TA-right.png](/images/4/4a/TA-right.png) |
Right (angle in degrees) |
turn turtle clockwise
|
![TA-arc.png](/images/c/c3/TA-arc.png) |
Arc (angle in degrees,radius) |
move turtle along an arc
|
![TA-setxy.png](/images/8/8e/TA-setxy.png) |
Setyx (xcor, ycor) |
move turtle to position (xcor, ycor) [(0, 0) is in the center of the screen.]
|
![TA-seth.png](/images/4/41/TA-seth.png) |
Seth (heading) |
set the heading of the turtle [0 is towards the top of the screen.]
|
![TA-show.svg](/images/thumb/f/f7/TA-show.svg/87px-TA-show.svg.png) |
Show (media) |
draw text, images, or play sounds
|
![TA-setscale.svg](/images/thumb/3/32/TA-setscale.svg/87px-TA-setscale.svg.png) |
Set scale (media) |
Set the scale of images
|
![TA-container.svg](/images/thumb/3/3a/TA-container.svg/100px-TA-container.svg.png) |
Container |
Load a media object from the Journal (plugs into the Show block)
|
![TA-xcoor.png](/images/c/cb/TA-xcoor.png) |
X coordinate |
holds current x-coordinate value of the turtle (can be used in place of a number block)
|
![TA-ycoor.png](/images/c/c2/TA-ycoor.png) |
Y coordinate |
holds current y-coordinate value of the turtle (can be used in place of a number block)
|
![TA-heading.png](/images/7/7e/TA-heading.png) |
Heading |
holds current heading value of the turtle (can be used in place of a number block)
|
![TA-scale.svg](/images/thumb/b/ba/TA-scale.svg/105px-TA-scale.svg.png) |
Scale |
holds current scale value
|
Turtle state values (can plug into a parameter):
- X, Y – Zeros for each are at center screen. Negative values are left and down; positive values are right and up.
- Heading – Zero is pointed up. Heading is in degrees clockwise.
- Angles are degrees from 0 to 360 (for larger values and smaller values all multiples of 360 are subtracted or added to get the value into the range 0..360).
- Examples: 90 means a right angle (90 degrees), clockwise; –30 means a 30-degree angle, counterclockwise