home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
DAC_GET.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
51 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME DAC_GET .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-NB01.INC"
COLOR 14,0
CLS
? "┌────────────────────────────────────────────────────────────────────────
? "│ DACget ( DAC?, R?, G?, B? )
? "│ DACset ( DAC?, R?, G?, B? )
? "├────────────────────────────────────────────────────────────────────────
? "│ These 2 are the bottom of the pile the, respectively, read/put the RGB
? "│ values to one DAC position.
? "└────────────────────────────────────────────────────────────────────────
DACget 63, R?, G?, B?
PRINT USING "DAC 63 Red: ## Green: ## Blue: ##";R?,G?,B?
PRINT
DACset 0, 42, 0, 42 ' PURPLE BACKGROUND
PRINT "Yellow letters on a purple background"
PRINT
DELAY 2
DACset 0, 63, 0, 0
PRINT "Yellow on a red background."
PRINT
DELAY 2
DACset 0, 0, 0, 0
PRINT "Yellow on a black background, again."