home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
601-625
/
apd616
/
source
/
wbcolours_proc_addon.amos
/
wbcolours_proc_addon.amosSourceCode
Wrap
AMOS Source Code
|
1978-01-03
|
1KB
|
57 lines
Procedure _GETWBPALETTE
'
F$=""
OK=0
'
If Exist("Env:Sys/Palette.prefs")
F$="Env:Sys/Palette.prefs"
OK=1
End If
'
If F$="" and Exist("ENVARC:Sys/Palette.prefs")
F$="EnvArc:Sys/Palette.prefs"
OK=1
End If
'
If F$="" and Exist("Devs:System-Configuration")
F$="Devs:System-Configuration"
OK=2
End If
'
If F$=""
Palette $999,$0,$FFF,$58A,$F00,$F0,$F,$FF0
End If
'
' *** Change To WB Colours.
'
If OK=1
'
Open In 1,F$
L=Lof(1)
Close 1
A$=Space$(L)
Bload F$,Varptr(A$)
For A=0 To 7
R=Peek(Varptr(A$)+180+A*8)/16
G=Peek(Varptr(A$)+182+A*8)/16
B=Peek(Varptr(A$)+184+A*8)/16
Colour A,(R*256+G*16+B)
Next A
A$=""
'
End If
'
If OK=2
Open In 1,F$
L=Lof(1)
Close 1
A$=Space$(L)
Bload F$,Varptr(A$)
For A=0 To 3
Colour A,Deek(Varptr(A$)+110+A*2)
Colour A+16,Deek(Varptr(A$)+102+A*2)
Next A
A$=""
End If
'
End Proc