home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
GBOXFILL.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
50 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME GBOXFILL.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"
SCREEN 12
CLS
GraphicSETUP
COLOR 7, 0
? "┌─────────────────────────────────────────────────────────────────────────
? "│ GBoxFILL ( C1%, R1%, C2%, R2%, Mask$, Pmode?, Colour? )
? "│
? "│ PURPOSE: fill a rectangular area of the screen with a masked color
? "│ PARAMS: C1% left-most column ( 0 -> 639 )
? "│ R1% top most row ( 0 -> 479 )
? "│ C2% right most column
? "│ R2% bottom most row
? "│ Mask$ bit-mapped mask for ON/OFF pixels but "" = Solid border
? "│ Pm? PutMode ( 0 -> 4 )
? "│ C? color number ( 0 -> 15 )
? "└─────────────────────────────────────────────────────────────────────────
DELAY 1 '┌─────────────────────────────
'│
GBoxFill 270, 250, 369, 349, "", 3, 14 '│ draw a solid box
DELAY 1 '│
Mask$ = CHR$(119,221,119,221,119,221,119,221) '│ stripes
GBoxFill 270, 250, 369, 349, Mask$, 2, 3 '│ XOR on a mask
DELAY 1 '│
GBoxFill 270, 250, 369, 349, Mask$, 2, 3 '│ XOR off the mask
'│
WHILE NOT INSTAT : WEND '│ I'll get deeper into masks
CLS '│ when we hit DAS-NBV2
SCREEN 0 '└────────────────────────────