Spirograph: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 14: Line 14:
         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);  
     },  
     },  
     -5*Math.PI,5*Math.PI
     -40*Math.PI,40*Math.PI
     ], {strokeWidth:3, strokeColor:'#3355ff', strokeOpacity:0.7});
     ], {strokeWidth:3, strokeColor:'#3355ff', strokeOpacity:0.7});
</jsxgraph>
</jsxgraph>

Revision as of 15:04, 19 July 2010