home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
501-525
/
apd525
/
circular-bob-plotter.amos
/
circular-bob-plotter.amosSourceCode
< prev
next >
Wrap
AMOS Source Code
|
1989-08-15
|
1KB
|
47 lines
'
'Greetz To Sausage,Brian,Paul and Pactronics!!
'
' AMOS RULES !!!!!!!!
'Message:
' G'day Sos.
' Here's the circular bob plotter you asked for!!
' Pretty nifty huh? I put the variables in so you
' can see how it was done and so it's easy to adjust
' the size and position. I hope it's useful!!
' See Ya,
' Happy Amosing,
' Nigel '91
'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