home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
HAVN_FUN.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
4KB
|
95 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME HAVN_FUN.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 ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
Just throwing some ideas around here. Have a look.
$endif
'.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
$INCLUDE "DAS-NB01.INC"
$INCLUDE "DAS-NB02.INC"
$INCLUDE "DAS-NBV1.INC"
$INCLUDE "DAS-NBV3.INC"
FileName$ = "DMO\V-FONT.850"
IF DIR$( FileName$ ) = "" THEN
PRINT "COULDN'T FIND THE FONT FILE"
END
END IF
FileNo% = FREEFILE
OPEN "B", #FileNo%, FileName$
IF LOF( FileNo% ) = 5120 THEN
Handle% = FILEATTR( FileNo%, 2 )
REDIM sVFont%(9,255)
fReadBLOCK Handle%, sVFont%(0,0), 5120
END IF
CLOSE #FileNo%
IF FileNo% = 0 THEN
PRINT "SOMETHING WENT WRONG!
END
END IF
SCREEN 12
GraphicSETUP
CLS
OldPalette$ = fLoadDAScolor$
GCOLOR 15, 0
Test$ = "A quick brown fox jumps over the lazy dog."
LOCATE 1, 1 : PRINT Test$
'┌───────────────────────────
Col% = 0 : Row% = 16 '│ NORMAL
FOR X% = 1 TO LEN( Test$ ) '│ once for each character
A% = fASCII%( Test$, X% ) '│ get ASCII value
Col% = fPutFBarr%( Col%,Row%,sVfont%(0,A%) ) '│ put it & get next column
NEXT '│
'├───────────────────────────
Col% = 1 : Row% = 48 '│ OUTLINE LETTERS
'│
FOR X% = 1 TO LEN( Test$ ) '│ once for each letter
A% = fASCII%( Test$, X% ) '│ get the ASCII value
IF A% = 32 THEN '│ if it is a space then
INCR Col%, 8 '│ simply incr cols &
ITERATE '│ go
END IF '│
FOR C% = Col% - 1 TO Col% + 1 '│ 3 columns ┐ total of
FOR R% = Row% - 1 TO Row% + 1 '│ 3 row ┘ 9 printings
PutCarr C%, R%, sVfont%(0,A%), 1, 15 '│ OR on the outline in black
NEXT '│
NEXT '│
PutCarr Col%, Row%, sVfont%(0,A%), 0, 4 '│ AND on the inside in Yellow
INCR Col%, 9 '│ next column
NEXT '├───────────────────────────
'│
Col% = 1 : Row% = 80 '│ SHADOWED LETTERS
FOR X% = 1 TO LEN( Test$ ) '│ once for each letter
A% = fASCII%( Test$, X% ) '│ get the ASCII value
IF A% <> 32 THEN '│ if it is a space then
PutCarr Col%+1, Row%+1, sVfont%(0,A%),3,15 '│
PutCarr Col% , Row% , sVfont%(0,A%),3,10 '│ AND on the inside in Yellow
END IF '│
INCR Col%, 8 '│ next column
NEXT '└───────────────────────────
fAnyKey
CLS
DACwriteSTR OldPalette$
SCREEN 0