home *** CD-ROM | disk | FTP | other *** search
- ' +----------------------------------------------------------------------+
- ' | |
- ' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
- ' | |
- ' | The BASIC Wizard's Library |
- ' | |
- ' +----------------------------------------------------------------------+
-
- DECLARE SUB G13Color (BYVAL Foreground%, BYVAL Background%)
- DECLARE SUB G13GetColor (Foreground%, Background%)
- DECLARE SUB G13Plot (BYVAL X%, BYVAL Y%)
-
- DEFINT A-Z
-
- SUB G13Put (StartX, StartY, Image())
- G13GetColor 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
- G13Color PEEK(AOfs), 0
- G13Plot X + StartX, Y + StartY
- AOfs = AOfs + 1
- NEXT
- NEXT
- G13Color Fore, Back
- DEF SEG
- END SUB
-