home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
451-475
/
apd453
/
circular-bob-plotter.amos
/
circular-bob-plotter.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1993-01-08
|
663b
|
24 lines
'Setup screen etc.
Screen Open 0,320,300,16,Lowres
Screen Display 0,,10,320,300
Hide : Flash Off : Curs Off : Cls 0
Double Buffer : Get Sprite Palette
'Co-ordinates of centre of circle!!
XCENTRE=140 : YCENTRE=140
'Radius of circle
RADIUS=120
'This variable effects the spacing factor AND the number of bobs used!!
'It works best if it divides evenly into RADIUS!! (Try 5!!! It looks cool.)
SPACE=30
'Number of first bob used!!
A=0
'Main Program. If you delete all the rem statements it's really small!!
For X=-1*RADIUS To RADIUS Step SPACE
Y=Sqr(RADIUS*RADIUS-X*X)
C=Y*-1
Bob A,X+XCENTRE,Y+YCENTRE,3
Inc A
Bob A,X+XCENTRE,C+YCENTRE,3
Inc A
Next X
Wait Key