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>put plot array image on screen graphics</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PUT                      Plot Array Image on Screen                  Graphics

 PUT [STEP] (x,y), array [,action]

    Transfers data from a numeric array to a specified location within the
    (graphics) screen buffer.

        STEP    If included, coordinates are relative to last graphics
                point referenced (LPR). If omitted, coordinates are
                absolute.

         x,y    The coordinates (column, row) of the upper left corner of
                the screen area that will receive the array image.

       array    A numeric array.

      action    An optional argument that allows you to control the
                interaction of the incoming data with the data currently
                in the screen buffer. Must be one of the following:

                PSET     Replaces each screen location with data from the
                         array.

                PRESET   Replaces current screen values with values that
                         are complementary to those held in the array. In
                         medium resolution, a value of 0 in the array
                         plots an attribute of 3, and vice versa. A value
                         of 1 in the array plots an attribute of 2, and
                         vice versa. In high resolution, a value of 0 in
                         the array plots an attribute of 1, and vice
                          versa.

                XOR      Array values are XORed with current screen
                         values. This is the default action.

                OR       Array values are ORed with current screen values.

                AND      Array values are ANDed with current screen
                         values.

See Also: GET (Graphics)

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