home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
sourcecode
/
subroutines
/
whole_screen_sine.amos
/
whole_screen_sine.amosSourceCode
< prev
Wrap
AMOS Source Code
|
2014-06-18
|
848b
|
50 lines
'************************************************
' Screen Sine wave
' ----------------
'
' By Malcolm Lavery
'************************************************
'
Screen Open 0,320,256,2,Lowres
Flash Off
Palette $0,$FFF
Cls 0
Load Iff ":iff/sine",0
Screen Open 1,320,256,2,Lowres
Bob Update Off
Autoback 0
Cls 0
Flash Off
Palette $0,$FFF
Set Rainbow 1,1,4000,"(6,1,15)(6,-1,15)","",""
Rainbow 1,0,0,100
Set Rainbow 2,1,4000,"(8,1,15)(8,-1,15)","(6,1,15)(6,-1,16)",""
Rainbow 2,0,120,250
Degree
Do
WAVY[10,10,50]
Loop
Procedure WAVY[IN,STE,SPEED]
FF=0
Repeat
For X=0 To 320 Step STE
Y#=Sin(X+FF)*IN
Screen Copy 0,X,0,X+STE,256 To 1,X,Y#+10
Next X
Add FF,SPEED
Until Inkey$<>""
End Proc