home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
451-475
/
apd470
/
neil_wright
/
screenfader.amos
/
screenfader.amosSourceCode
Wrap
AMOS Source Code
|
1993-03-07
|
1KB
|
50 lines
' *********************************************************************
' * This routine does a screen fade into black and makes it reappear. *
' * Feel free to any of use it - the useful stuff's in the procedures.*
' * Written by Stephan Scholz La Oroya 1993 *
' *********************************************************************
Dim CLV(16)
Screen Open 0,320,256,16,Lowres
Cls 15
For N=0 To 15
Pen N
Paper 15-N
Locate N,N+7
Print "Greetings from La Oroya";
Next N
Flash Off
Bell 55
Wait 100
'screen goes black
DARK
Bell 45
Wait 100
'screen recovers its original colours and lights up again
LIGHT
End
Procedure DARK
Shared CLV(),DAY
For N=0 To 15 : CLV(N)=Colour(N) : Next N : DAY=1
Do
For N=0 To 15
If Colour(N)=0 Then COUNT=COUNT+1
If COUNT=16 Then COUNT=0 : Pop Proc
CL=Colour(N)
RED=256
If CL<256 Then RED=16
If RED=16 and CL<16 Then RED=1
CL=CL-RED
If CL<0 Then CL=0
Colour(N),CL
For P=1 To 500 : Next P
Next N
COUNT=0
Loop
End Proc
Procedure LIGHT
Shared CLV()
For N=0 To 15
Colour(N),CLV(N)
For P=1 To 2000 : Next P
Next N
End Proc