home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
basic
/
baswiz18.zip
/
BW$BAS.ZIP
/
G13PUT.BAS
< prev
next >
Wrap
BASIC Source File
|
1992-08-29
|
1KB
|
32 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1992 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