home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
451-475
/
apd470
/
neil_wright
/
hamsandwich.amos
/
hamsandwich.amosSourceCode
Wrap
AMOS Source Code
|
1993-03-07
|
3KB
|
197 lines
' Multi Ham Effect Tm (4096 cycling colours GROOVY!!!!)
' By Neil Wright (C) 1993
' Of the C.I.A
'
' Using Gary Shilvock's excellent rainbow (APD 54)
'
' *** Save Memory ***
Close Editor
Close Workbench
' *** Open a HAM Screen ***
Screen Open 0,320,256,4096,Lowres
Curs Off : Hide
Cls 0
' *** Turn off Auto View ***
' *** So that you can't ***
' *** See the effect being created ***
Auto View Off
' *** Set speed off Extra-Half Bright Bars ***
CIA=1
' *** Draw a screen with each line a different colour ***
For I=0 To 360 Step 1
B=(I mod 4096)
Ink B
Box 1,256-I To 320,256-I
Next I
' *** Cycle palette ***
Shift Down CIA,1,4095,1
' *** Activite Gary's excellent Rainbows ***
_RAINBOW
Procedure _RAINBOW
Set Rainbow 0,0,400,"","",""
OFFSET=0
A=$0
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$1
Next
A=$F
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$100
Next
A=$F0F
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$10
Next
A=$FFF
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$1
Next
A=$FF0
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$10
Next
A=$F00
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$100
Next
A=$0
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$1
Next
A=$F
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$100
Next
A=$F0F
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$10
Next
A=$FFF
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$1
Next
A=$FF0
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$10
Next
A=$F00
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$100
Next
A=$0
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$1
Next
A=$F
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$100
Next
A=$F0F
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$10
Next
A=$FFF
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$1
Next
A=$FF0
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$10
Next
A=$F00
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$100
Next
A=$0
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$1
Next
A=$F
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$100
Next
A=$F0F
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
Add A,$10
Next
A=$FFF
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$1
Next
A=$FF0
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$10
Next
A=$F00
For B=0 To 15
Rain(0,OFFSET)=A
Inc OFFSET
A=A-$100
Next
Rainbow 0,40,1,300
End Proc
' *** Roll those rainbows using a multi-purpose ***
' *** routine created for the AMOS Pro procedure ***
' *** Competition (C) CIA ***
_AMAL_RAINBOW_ROLL[0,0]
Procedure _AMAL_RAINBOW_ROLL[CHAN,RB]
' *** This procedure is (C) 1993 Neil Wright ***
' *** Use and abuse but credit me ***
' *** Assign Chosen Channel To Chosen Rainbow ***
Channel CHAN To Rainbow RB
' *** Set up Amal Channel **************************
Amal CHAN,"L: For R0=0 To 192; Let X=R0 ; Next R0; Jump L"
Amal On CHAN
End Proc
' *** Make effect automagicwhiztastically appear ***
View
Auto View On
' *** Wait for ever ***
Do
Loop