- This wiki is out of date, use the continuation of this wiki instead
Size x
From FenixWiki
(Difference between revisions)
| Revision as of 11:34, 23 April 2007 (edit) Woody (Talk | contribs) ← Previous diff |
Revision as of 11:36, 23 April 2007 (edit) (undo) Woody (Talk | contribs) Next diff → |
||
| Line 3: | Line 3: | ||
| '''size_x''' is a predefined [[local variable]] that can be used to stretch or compress a graphic along its horizontal axis. It is measured in pixels. | '''size_x''' is a predefined [[local variable]] that can be used to stretch or compress a graphic along its horizontal axis. It is measured in pixels. | ||
| + | == Notes == | ||
| + | See also [[size_x]]. | ||
| == Example == | == Example == | ||
| - | To make the [[graphic]] of a [[process]] continually stretch | + | To make the [[graphic]] of a [[process]] continually stretch horizontally: |
| <pre> | <pre> | ||
| Process stretch_graphic() | Process stretch_graphic() | ||
Revision as of 11:36, 23 April 2007
Definition
size_x is a predefined local variable that can be used to stretch or compress a graphic along its horizontal axis. It is measured in pixels.
Notes
See also size_x.
Example
To make the graphic of a process continually stretch horizontally:
Process stretch_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
size_x += 1; //increase the width of the graphic by 1 pixel each frame.
frame;
End
End
