home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
PLOTPNT.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
3KB
|
64 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME PLOTPNT .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
GraphicSETUP
? "┌────────────────────────────────────────────────────────────────────────
? "│ Plot ( Col%, Row%, Pmode?, Colour? )
? "├────────────────────────────────────────────────────────────────────────
? "│ Rarely, but occasionally, you need to color only 1 pixel at a time.
? "│ Here's our way of doing it.
? "└────────────────────────────────────────────────────────────────────────
FOR Col% = 0 TO 99 ' plot 10,000 pixels, one at a time
FOR Row% = 201 TO 300 ' kind'a slow!
Plot Col%, Row%, 3, 14 ' Pmode? = 3 PSET and color = yellow
NEXT '
NEXT '
'
DELAY 1 '
'
FOR Col% = 10 TO 19 ' now we XOR off 400 of those yellow
FOR Row% = 211 TO 250 ' pixels like this!
Plot Col%, Row%, 2, 14 ' Pmode? = 2 XOR
NEXT '
NEXT '
'
DELAY 1 '
'
FOR Col% = 30 TO 39 ' XOR on a "WHITE" patch
FOR Row% = 211 TO 250 ' 14 xor 15
Plot Col%, Row%, 2, 15 ' Pmode? = 2 ( &b00001110 XOR &b00001111)
NEXT '
NEXT '
'
DELAY 1 '
'
FOR Col% = 30 TO 39 ' XOR off a "WHITE" patch
FOR Row% = 211 TO 250 ' 15 xor 1
Plot Col%, Row%, 2, 15 ' Pmode? = 2 ( &b00001111 XOR &b00000001)
NEXT '
NEXT '
'