[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
SetHeading Sets Heading for Turtle
SetHeading(Angle : Integer); [TG/TP]
Sets the turtle's heading to a specific angle. The possible range is
0..359, where 0 (North) is up, 90 (East) is right, 180 (South) is
down, and 270 (West) is left.
Angle New heading for turtle; range is 0..359.
Note: Angles not in the range 0..359 are modified. Negative
angles go in a counterclockwise direction; that is,
the actual angle is (360 + Angle). For example, if the
Angle is -3, the actual angle is 357. An Angle that is
larger than 359 is modified so that the value 'Angle
MOD 360' is used instead.
-------------------------------- Example ---------------------------------
{$I GRAPH.P}
GraphMode; { set to 320 x 200 graphics mode }
SetHeading(South); { point turtle to bottom of screen }
See Also:
Heading
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson