Activities/Turtle Art/Turtle

From Sugar Labs

Jump to: navigation, search
english | español | HowTo [ID# 46904] 


The Turtle Palette (green)

examples (1)

TA-forward-example.png TA-back-example.png TA-forward-right-example.png TA-arc-example.png TA-seth-example.png TA-heading-example.png TA-show-example.png TA-text-example.png TA-image-example.png

descriptions (1)

TA-clean.pngCleanclear the screen and reset the turtle to center, pointed up (pen down, bright red)
TA-forward.pngForward (number)move turtle forward
TA-back.pngBack (number)move turtle backward
TA-left.pngLeft (angle in degrees)turn turtle counterclockwise
TA-right.pngRight (angle in degrees)turn turtle clockwise
TA-arc.pngArc (angle in degrees,radius)move turtle along an arc
TA-setxy.pngSetyx (xcor, ycor)move turtle to position (xcor, ycor) [(0, 0) is in the center of the screen.]
TA-seth.pngSeth (heading)set the heading of the turtle [0 is towards the top of the screen.]
TA-show.svgShow (media)draw text, images, or play sounds
TA-setscale.svgSet scale (media)Set the scale of images
TA-container.svgContainerLoad a media object from the Journal (plugs into the Show block)
TA-xcoor.pngX coordinateholds current x-coordinate value of the turtle (can be used in place of a number block)
TA-ycoor.pngY coordinateholds current y-coordinate value of the turtle (can be used in place of a number block)
TA-heading.pngHeadingholds current heading value of the turtle (can be used in place of a number block)
TA-scale.svgScaleholds current scale value

Turtle state values (can plug into a parameter):

Examples: 90 means a right angle (90 degrees), clockwise; –30 means a 30-degree angle, counterclockwise
Personal tools
Namespaces
Variants
Actions
Sugar
Projects
Teams
Local Labs
Using the Wiki
Google translations