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
/
G2BANNER.BAS
< prev
next >
Wrap
BASIC Source File
|
1993-01-29
|
2KB
|
48 lines
' +----------------------------------------------------------------------+
' | |
' | BASWIZ Copyright (c) 1990-1993 Thomas G. Hanlin III |
' | |
' | The BASIC Wizard's Library |
' | |
' +----------------------------------------------------------------------+
DECLARE FUNCTION Power2I% (BYVAL PowerOf2 AS INTEGER)
DECLARE SUB G2Box (BYVAL X1%, BYVAL Y1%, BYVAL X2%, BYVAL Y2%, BYVAL Fill%)
DECLARE SUB G2Plot (BYVAL X%, BYVAL Y%)
DECLARE FUNCTION BFontRow0% (BYVAL ch%, BYVAL Row%)
DECLARE FUNCTION BFontRows0% ()
DEFINT A-Z
SUB G2Banner (St$, X, Y, Xmul, Ymul)
MaxRow = BFontRows0 - 1
IF Xmul <= 1 AND Ymul <= 1 THEN
FOR tmp = 1 TO LEN(St$)
cha = ASC(MID$(St$, tmp, 1))
FOR Row = 0 TO MaxRow
ch = BFontRow0(cha, Row)
FOR Col = 0 TO 7
IF ch AND Power2I%(7 - Col) THEN
G2Plot (tmp - 1) * 8 + Col + X, Row + Y
END IF
NEXT
NEXT
NEXT
ELSE
FOR tmp = 1 TO LEN(St$)
cha = ASC(MID$(St$, tmp, 1))
FOR Row = 0 TO MaxRow
vy = Row * Ymul + Y
ch = BFontRow0(cha, Row)
FOR Col = 0 TO 7
IF ch AND Power2I%(7 - Col) THEN
vx = ((tmp - 1) * 8 + Col) * Xmul + X
G2Box vx, vy, vx + Xmul - 1, vy + Ymul - 1, 1
END IF
NEXT
NEXT
NEXT
END IF
END SUB