Activities/Turtle Art-0.86: Difference between revisions
| Line 79: | Line 79: | ||
|[[Image:TA-arc.png]]||Arc (angle in degrees,radius)||move turtle along an arc | |[[Image:TA-arc.png]]||Arc (angle in degrees,radius)||move turtle along an arc | ||
|- | |- | ||
|[[Image:TA-setxy.png]]||Setyx (xcor, ycor)||move turtle to position (xcor,ycor) [(0,0) is in the center of the screen.] | |[[Image:TA-setxy.png]]||Setyx (xcor, ycor)||move turtle to position (xcor, ycor) [(0, 0) is in the center of the screen.] | ||
|- | |- | ||
|[[Image:TA-seth.png]]||Seth (heading)||set the heading of the turtle [0 is towards the top of the screen.] | |[[Image:TA-seth.png]]||Seth (heading)||set the heading of the turtle [0 is towards the top of the screen.] | ||
| Line 95: | Line 95: | ||
Turtle state values (can plug into a parameter): | Turtle state values (can plug into a parameter): | ||
* X, Y | * 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 | |||