home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
GBOXDRAW.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
54 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME GBOXDRAW.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
COLOR 7, 0
CLS
? "┌────────────────────────────────────────────────────────────────────────
? "│ GBoxDRAW C1%, R1%, C2%, R2%, Mask%, Pmode?, Colour?
? "│
? "│ PURPOSE: draw a one pixel box with masked pixels
? "│ 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 0 = Solid border
? "│ Pm? PutMode ( 0 -> 4 )
? "│ C? color number ( 0 -> 15 )
? "└─────────────────────────────────────────────────────────────────────────
C1% = 270 : C2% = C1% + 99
R1% = 220 : R2% = 320
FOR C? = 1 TO 15
IF Mask% = &h5555 THEN Mask% = &hAAAA ELSE Mask% = &h5555
GBoxDRAW C1%+C?, R1%-C?, C2%-C?, R2%+C?, Mask%, 3, C?
NEXT
LOCATE 17, 38 : PRINT "DASoft"
' &h5555 = &b0101010101010101
' &hAAAA = &b1010101010101010
WHILE NOT INSTAT : WEND
CLS
SCREEN 0