Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>aty()</b> c_exam02 http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ATY()                                                               C_EXAM02
   Returns the physical pixel or logical Y position on the screen.

   Syntax
         nN = ATY(nYValue,nType)

   Arguments
         nYValue     Sets the Y coordinate value.
         nType       Sets the type of coordinate system.
                     0 - World coordinate system.
                     1 - Axis scale coordinates.
                     2 - Screen coordinate Upper-left (0,0) to Lower-right
                         (100,100).

   Returns
         nN          Returns the physical pixel or logical position on the
                     screen.

   Description
         ATY() returns the physical pixel or logical position on the screen
         depending on the type of coordinate system. This allows a label,
         drawing commands, etc, to be placed on a variety of different monitor
         resolutions in a similar relative position.

         Type 0: the screen location based on the world coordinates. The
         default world values for the upper left corner are 0,0. The lower
         right corner of the screen is 100,100.

         Type 1: the relative position on the graph based on the X and Y
         scale position. If the X-axis scale was from 0 to 10 units, then
         ATY(5,1) would return a physical pixel location on the Y scale at Y
         equal to 5.

         Type 2: the position based on coordinates (0,0) for upper left and
         (100,100) for lower right for the entire screen.

         These functions can be used in any other functions requesting an X
         and Y coordinate position.

         Minor adjustments can be made to the position returned by the
         functions by adding or subtracting pixels from the returned
         physical location.

See Also: ABS_TO_X() ABS_TO_Y() ATX()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson