home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
extensions
/
jd
/
procs
/
_spiral.amos
/
_spiral.amosSourceCode
Wrap
AMOS Source Code
|
1994-02-02
|
465b
|
19 lines
' Spiralen plotten
'
' X,Y = Spiral-Mittelpunkt
' SR,ER = Start- und Endradius
' AB = Vollkreisabstand
' VK = Vollkreis ja/nein
'
X=160 : Y=100 : SR=50 : ER=10 : AB=3 : VK=1
SPIRAL[X,Y,SR,ER,AB,VK]
Procedure SPIRAL[X,Y,SR,ER,AB,VK]
Degree
A=360/AB : L=A/(9-AB)
For S=0 To L
For W=0 To 359
Plot X+SR*Cos(W),Y+SR*Sin(W)
K=W/A*A : If K=W Then SR=SR-1 : If SR<=ER Then S=L : If VK=0 Then W=359
Next
Next
End Proc