home *** CD-ROM | disk | FTP | other *** search
- ' +----------------------------------------------------------------------+
- ' | |
- ' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
- ' | |
- ' | The BASIC Wizard's Library |
- ' | |
- ' +----------------------------------------------------------------------+
-
- DECLARE SUB GN5Color (BYVAL Foreground%, BYVAL Background%)
- DECLARE SUB GN5GetColor (Foreground%, Background%)
- DECLARE SUB GN5Plot (BYVAL X%, BYVAL Y%)
-
- DEFINT A-Z
-
- SUB GN5Put (StartX, StartY, Image())
- GN5GetColor Fore, Back
- L = LBOUND(Image)
- DX = Image(L) \ 8
- DY = Image(L + 1)
- DEF SEG = VARSEG(Image(L + 2))
- AOfs = VARPTR(Image(L + 2))
- FOR Y = 0 TO DY - 1
- FOR X = 0 TO DX - 1
- GN5Color PEEK(AOfs), 0
- GN5Plot X + StartX, Y + StartY
- AOfs = AOfs + 1
- NEXT
- NEXT
- GN5Color Fore, Back
- DEF SEG
- END SUB
-