home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AMOS PD CD
/
amospdcd.iso
/
451-475
/
apd453
/
wire.amos
/
wire.amosSourceCode
Wrap
AMOS Source Code
|
1993-01-08
|
913b
|
51 lines
Screen Open 1,640,256,4,Hires
Wind Open 1,0,0,78,28
Pen 2
Clw
Input "Angle of tilt? (0-90) ";M#
O#=M#/90
Print
Input "Magnification? ";K
Print
Input "Twist degrees? (per segment) ";TD
TW=TD
Restore
Read N,S
Dim X(S+1,N+1),Y(S+1,N+1),R#(N),C#(N)
For L=1 To N
Read C#(L),R#(L)
R#(L)=R#(L)*K
C#(L)=C#(L)*K
C#(L)=(C#(L)/90)*(90-M)
C#(L)=C#(L)+M-(K*5)
Next L
Print
Print "Please wait ";S*N*0.134;" seconds"
B=0
L00P1:
A=1
For I#=TW+SD To 359+(360/S)+TW+SD Step 360/S
D#=I#*Pi#/180
X(A,B)=315+(R#(B)*Cos(D#))
Y(A,B)=20+(C#(B)+((R#(B)*O#)*Sin(D#))*0.5)
Inc A
Next I#
Inc B
TW=TW+TD
If B<=N Then Goto L00P1
For Z=1 To S
X(Z,N+1)=X(Z,N) : Y(Z,N+1)=Y(Z,N)
Next Z
Clw
TW=TD
For J=1 To S
For U=1 To N
Draw X(J,U),Y(J,U) To X(J+1,U),Y(J+1,U)
Draw X(J,U),Y(J,U) To X(J,U+1),Y(J,U+1)
Next U
Next J
SD=SD+10
B=0
Goto L00P1
Data 8,30
Data 30,160,80,130,20,100,115,70,70,56,140,56,20,30,35,10