- This wiki is out of date, use the continuation of this wiki instead
Angle
From FenixWiki
Definition
Angle is a predefined local variable which holds the angle (measured in 1/1000 of a degree) which the graphic of that process (assigned by the graph variable) will be drawn at.
Example
To make the graphic of a process spin:
process spinning_graphic()
begin
graph = load_png("image.png"); //load the graphic and assign it to the graph variable
x = 100; //Position the graphic 100 pixels
y = 100; //from the top and left of the screen
loop
angle += 1000; //increase the angle of graphic by 1000 each frame. 1000 = 1 degree.
frame;
end
end
This process will spin the graphic stored in the file "image.png" by 1 degree each frame.
