Spirograph: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
var r1 = r.Value(); | var r1 = r.Value(); | ||
return (R-r1)*Math.sin(r1/R*t)+a.Value()*Math.sin((1-r1/R)*t); | return (R-r1)*Math.sin(r1/R*t)+a.Value()*Math.sin((1-r1/R)*t); | ||
} | }, | ||
], {strokeWidth:3, strokeColor:'3355ff', strokeOpacity:0.7}); | -5*Math.PI,5*Math.PI | ||
], {strokeWidth:3, strokeColor:'#3355ff', strokeOpacity:0.7}); | |||
</jsxgraph> | </jsxgraph> |