Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>window redefine screen coordinates</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WINDOW                   Redefine Screen Coordinates

 WINDOW [[SCREEN](x1,y1)-(x2,y2)]

    Specifies "world" coordinates for the screen.

      SCREEN    If omitted, x1,y1 and x2,y2 specify the upper left and
                lower right corners of the world space, respectively. If
                included, x1,y1 and x2,y2 specify the lower left and upper
                right corners of the world space, respectively.

 x1,y1,x2,y2    Corners (column, row) of the world space, in pixels.

   -------------------------------------------------------------------------

      Notes:    The WINDOW statement allows you to redefine the corners of
                the display screen as a pair of "world" coordinates.
                Because objects plotted by subsequent graphics statements
                are still plotted in the standard "physical" coordinates,
                the WINDOW statement provides a way of scaling, rotating,
                and/or transposing such objects.

                BASIC sorts the coordinates so that the lower of x1 and y1
                will be treated as x1 and the lower of y1 and y2 will be
                treated as y1, regardless of how the coordinates are
                presented. Thus WINDOW (280,120)-(140,180) would be
                equivalent to WINDOW (140,120)-(280,180).

                A world space defined by WINDOW is disabled by a RUN
                statement, a change in SCREEN attributes, or a WINDOW
                statement with no arguments.

See Also: PMAP VIEW

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