Image bm128.GIF Direction of Peter
The direction of Peter element represents the direction of Peter after being rotated, expressed in radian (The perigon, 360 degrees, corresponding approximately to 6.28). The element can be treated as a normal numeric variable. By using it in a numeric term Peter's current direction can be found out. By using the element as a command the direction of Peter can be set. In case a preceding command to shift to a specified coordinate has been given Peter will first finish the shift before being rotated.
To facilitate the use of directions predefined angle constants can be utilized enabling execution of numeric operations, e.g. addition and division.

Full Html Context Help of The Peter - Gemtree Software & Children Programming