to n内旋轮线 rr r d b n
;n内旋轮线 100 200 200 0.5 1
home pu
make t 0 make i_i 360*n make rr_r rr-r
make c_os cos(t) make s_in sin(t) make t_r (rr_r*180)/(r*PI) make rr_t rr_r*t
make co_s cos(rr_t) make si_n sin(rr_t)
make x_x (rr_r*c_os)+(d*co_s)
make y_y (rr_r*s_in)-(d*si_n)
setxy x_x y_y
pd
label lb1
make c_os cos(t) make s_in sin(t) make t_r (rr_r*180)/(r*PI) make rr_t rr_r*t
make co_s cos(rr_t) make si_n sin(rr_t)
make x_x (rr_r*c_os)+(d*co_s)
make y_y (rr_r*s_in)-(d*si_n)
setxy x_x y_y
make t t+b
if t>i_i then [pu home pd stop]
go lb1
end
;n内旋轮线 100 200 200 0.5 1
home pu
make t 0 make i_i 360*n make rr_r rr-r
make c_os cos(t) make s_in sin(t) make t_r (rr_r*180)/(r*PI) make rr_t rr_r*t
make co_s cos(rr_t) make si_n sin(rr_t)
make x_x (rr_r*c_os)+(d*co_s)
make y_y (rr_r*s_in)-(d*si_n)
setxy x_x y_y
pd
label lb1
make c_os cos(t) make s_in sin(t) make t_r (rr_r*180)/(r*PI) make rr_t rr_r*t
make co_s cos(rr_t) make si_n sin(rr_t)
make x_x (rr_r*c_os)+(d*co_s)
make y_y (rr_r*s_in)-(d*si_n)
setxy x_x y_y
make t t+b
if t>i_i then [pu home pd stop]
go lb1
end