This wiki is out of date, use the continuation of this wiki instead

Size x

From FenixWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:38, 14 November 2007 (edit)
Sandman (Talk | contribs)
m
← Previous diff
Revision as of 11:06, 31 March 2008 (edit) (undo)
TrevorBradley (Talk | contribs)
(Definition)
Next diff →
Line 11: Line 11:
'''INT''' size_x '''INT''' size_x
-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 defined as a percentage of the original graphic size.
== Notes == == Notes ==

Revision as of 11:06, 31 March 2008

Up to Local Variables



Definition

INT size_x

Size_x is a predefined local variable that can be used to stretch or compress a graphic along its horizontal axis. It is defined as a percentage of the original graphic size.

Notes

See also size_y.

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


Local variables
AngleBigbroFatherFileFlagsGraphIdRegionReservedResolutionSizeSize_xSize_ySmallbroSonXYZ
Personal tools