home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
SHERBLOW.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
4KB
|
60 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME SHERBLOW.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NBV1.INC" '┌──────────────────────
CLS '│
SCREEN 12 '│
GraphicSETUP '│ don't forget this!
'│
BpC% = fBMPwords%( 8, 16 ) - 1 '│ storage size
DIM Font% ( BpC%, 255 ) '│ storage array
DIM Buf1% ( BpC% * 2 ) '│ working buffer
DIM Buf2% ( BpC% * 3 ) '│ bigger working buffer
FT_Ptr??? = VARPTR32( Font%(0,0) ) '│ build some pointers
B1_Ptr??? = VARPTR32( Buf1%(0) ) '│
B2_Ptr??? = VARPTR32( Buf2%(0) ) '│
FOR C% = 0 TO 255 '│ 255 characters
LOCATE 1, 1 : PRINT CHR$(C%) '│ print chr to screen
fGetPArr 0, 0, 7, 15, Font%(0,C%), 0 '│ read plane 0 into
NEXT '│ storage array
'│
FOR R% = 0 TO 31 STEP 6 '│ put some background
GLineDRAW 0, R%, 639, R%, 0, 3, 8 '│ lines on the screen
NEXT '│
'│
T$ = "A quick brown fox jumps over the lazy dog." '│ a good test string
'│
FOR P% = 1 TO LEN( T$ ) '│ print the string
C% = ASCII( MID$( T$, P% ) ) '│ get ASCII value
IF C% <> 32 THEN '│ if not a space
BlowIconARR Font%(0,C%), Buf1%(0), 2 '│ bigger is better
ShearIcon Buf1%(0), Buf2%(0), -16 '│ \\\ italics \\\
Ptr??? = B2_Ptr??? '│ print this data
ELSE '│
Buf1%(0) = 8 '│ yes, this works!
Ptr??? = FT_Ptr??? '│ print this data
END IF '│
PutCarr Col%, 0, BYVAL Ptr???, 3, 14 '│ put chr from array
INCR Col%, Buf1%(0) '│ move columns
NEXT '│ notice that only the
'│ ON pixels are put
WHILE NOT INSTAT : WEND '│ the OFF pixels are
CLS '│ ignored!
SCREEN 0 '└──────────────────────