home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
extensions
/
jd
/
procs
/
_coloureffects.amos
/
_coloureffects.amosSourceCode
Wrap
AMOS Source Code
|
1994-02-02
|
3KB
|
193 lines
Screen Open 1,320,200,32,Lowres
Wait 5 : Screen Hide 1
Screen 0 : Wait 5
Dim C(31)
Global C()
Flash Off : Curs Off
For X=0 To 31
Ink X : Bar X*10,10 To X*10+9,30
C(X)=Colour(X)
Next
Locate 0,0 : Print "Normal" : Wait 100
DUBBLE:
For X=0 To 31
A=Colour(X)*2
Colour X,A
Next
INFO["Double Cols"]
HALVE:
For X=0 To 31
A=Colour(X)/2
Colour X,A
Next
INFO["Halve Cols"]
MIXPALETTEN:
For X=0 To 31
Screen 1 : Wait 5
A1$=Hex$(Colour(X),3)
Screen 0 : Wait 5
A2$=Hex$(Colour(X),3)
A=(Val(A1$)+Val(A2$))/2
Colour X,A
Next
INFO["Mix Palette"]
FULL_RED:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,2,1)="f"
Colour X,Val(A$)
Next
INFO["Full Red"]
NO_RED:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,2,1)="0"
Colour X,Val(A$)
Next
INFO["No Red"]
FULL_GREEN:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,3,1)="f"
Colour X,Val(A$)
Next
INFO["Full Green"]
NO_GREEN:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,3,1)="0"
Colour X,Val(A$)
Next
INFO["No Green"]
FULL_BLUE:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,4,1)="f"
Colour X,Val(A$)
Next
INFO["Full Blue"]
NO_BLUE:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,4,1)="0"
Colour X,Val(A$)
Next
INFO["No Blue"]
_ONLY_RED:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,3,2)="00"
Colour X,Val(A$)
Next
INFO["Only Red"]
_ONLY_GREEN:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,2,1)="0"
Mid$(A$,4,1)="0"
Colour X,Val(A$)
Next
INFO["Only Green"]
_ONLY_BLUE:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,2,2)="00"
Colour X,Val(A$)
Next
INFO["Only Blue"]
PLUS_BLUE:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,3,2)="FF"
Colour X,Val(A$)
Next
INFO["Plus Blue"]
PLUS_RED:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,2,1)="F"
Mid$(A$,4,1)="F"
Colour X,Val(A$)
Next
INFO["Plus Red"]
PLUS_YELLOW:
For X=0 To 31
A$=Hex$(Colour(X),3)
Mid$(A$,2,2)="FF"
Colour X,Val(A$)
Next
INFO["Plus Yellow"]
NEGATIV:
For X=0 To 31
C=Colour(X)
C= Not C
Colour X,C
Next
INFO["Negativ"]
COMPLEMENT:
For X=0 To 31
C$=Hex$(Colour(X),3)
R$=Mid$(C$,2,1)
B$=Mid$(C$,4,1)
Mid$(C$,2,1)=B$
Mid$(C$,4,1)=R$
Colour X,Val(C$)
Next
INFO["Complement"]
BLACKWHITE:
For X=0 To 31
C=Colour(X)
C1=C/256
C2=(C/16) mod 16
C3=C mod 16
C=C1+C2+C3
C1=C/3
C2=C/3
C3=C/3
C=(C1*256)+(C1*16)+C3
Colour X,C
Next
INFO["Black & White"]
ANTIK:
For X=0 To 31
C=Colour(X)
C1=C/256
C2=(C/16) mod 16
C3=C mod 16
C=C1+C2+C3
C1=C/3
C2=C/4
C3=C/5
C=(C1*256)+(C1*16)+C3
Colour X,C
Next
INFO["Antik"]
Locate 0,0 : Print "Normal " : Wait 100
Procedure INFO[A$]
A$= Extension_22_011A(A$,20,1)
Locate 0,0 : Print A$ : Wait 100
For X=0 To 31
Colour X,C(X)
Next
End Proc