home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
GBOXCOLR.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
47 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME GBOXCOLR.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
? "┌─────────────────────────────────────────────────────────────────────────
? "│ GBoxCOLOR ( C1%, R1%, C2%, R2%, Colour? )
? "│
? "│ PURPOSE: fill a rectangular area of the screen with a solid color
? "│ PARAMS: C1% left-most column ( 0 -> 639 )
? "│ R1% top most row ( 0 -> 479 )
? "│ C2% right most column
? "│ R2% bottom most row
? "│ C? color number ( 0 -> 15 )
? "└─────────────────────────────────────────────────────────────────────────
DELAY 1 '┌──────────────────────────────
'│
FOR C? = 1 TO 15 '│ once for each "visable" color
GBoxCOLOR C1%, 250, C1%+39, 350, C? '│ hit it!
INCR C1%, 42 '│ next column
NEXT '│
'│
WHILE NOT INSTAT : WEND '│
CLS '│
SCREEN 0 '└─────────────────────────────