Activities/Turtle Art/Turtle

From Sugar Labs
Jump to navigation Jump to search
english | español | HowTo [ID# 46904] 


The Turtle Palette (green)

examples (1)

Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination

descriptions (1)

Error creating thumbnail: Unable to save thumbnail to destination
Clean clear the screen and reset the turtle to center, pointed up (pen down, bright red)
Error creating thumbnail: Unable to save thumbnail to destination
Forward (number) move turtle forward
Error creating thumbnail: Unable to save thumbnail to destination
Back (number) move turtle backward
Error creating thumbnail: Unable to save thumbnail to destination
Left (angle in degrees) turn turtle counterclockwise
Error creating thumbnail: Unable to save thumbnail to destination
Right (angle in degrees) turn turtle clockwise
Error creating thumbnail: Unable to save thumbnail to destination
Arc (angle in degrees,radius) move turtle along an arc
Error creating thumbnail: Unable to save thumbnail to destination
Setyx (xcor, ycor) move turtle to position (xcor, ycor) [(0, 0) is in the center of the screen.]
Error creating thumbnail: Unable to save thumbnail to destination
Seth (heading) set the heading of the turtle [0 is towards the top of the screen.]
TA-show.svg Show (media) draw text, images, or play sounds
TA-setscale.svg Set scale (media) Set the scale of images
TA-container.svg Container Load a media object from the Journal (plugs into the Show block)
Error creating thumbnail: Unable to save thumbnail to destination
X coordinate holds current x-coordinate value of the turtle (can be used in place of a number block)
Error creating thumbnail: Unable to save thumbnail to destination
Y coordinate holds current y-coordinate value of the turtle (can be used in place of a number block)
Error creating thumbnail: Unable to save thumbnail to destination
Heading holds current heading value of the turtle (can be used in place of a number block)
TA-scale.svg 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