home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / baswiz19.zip / BW$BAS.ZIP / GN2DISPL.BAS < prev    next >
BASIC Source File  |  1993-01-29  |  1KB  |  29 lines

  1. '   +----------------------------------------------------------------------+
  2. '   |                                                                      |
  3. '   |        BASWIZ  Copyright (c) 1990-1993  Thomas G. Hanlin III         |
  4. '   |                                                                      |
  5. '   |                      The BASIC Wizard's Library                      |
  6. '   |                                                                      |
  7. '   +----------------------------------------------------------------------+
  8.  
  9.    DECLARE FUNCTION GN2GetPel% (BYVAL X%, BYVAL Y%)
  10.    DECLARE SUB G11Cls ()
  11.    DECLARE SUB G11Color (BYVAL Foreground%, BYVAL Background%)
  12.    DECLARE SUB G11GetColor (Foreground%, Background%)
  13.    DECLARE SUB G11Plot (BYVAL X%, BYVAL Y%)
  14.  
  15.    DEFINT A-Z
  16.  
  17. SUB GN2Display
  18.    G11GetColor OldF, OldB
  19.    G11Color 0, 1
  20.    G11Cls
  21.    FOR Y = 0 TO 639
  22.       FOR X = 0 TO 479
  23.          G11Color 1 - GN2GetPel(X, Y), 0
  24.          G11Plot Y, 479 - X
  25.       NEXT
  26.    NEXT
  27.    G11Color OldF, OldB
  28. END SUB
  29.