Rolling Reuleaux pentagon: Difference between revisions

From JSXGraph Wiki
(New page: <jsxgraph width="0" height="0" box="nix"></jsxgraph> <html> <script type="text/javascript" src="/~alfred/jsxgraph/trunk/src/Roulette.js"></script> <form> <input type="button" value="start"...)
 
No edit summary
Line 25: Line 25:
for (i=0;i<3;i++) pol3.vertices[i].setProperty({color:'#3d1c24'});
for (i=0;i<3;i++) pol3.vertices[i].setProperty({color:'#3d1c24'});


var line = brd.create('line',[function(t){return t;}, function(t){return -2;}],  
var line = brd.create('curve',[function(t){return t;}, function(t){return -2;}],  
                 {strokeWidth:6, strokeColor:'#d66d55', fillColor:'#d6bb55', highlightFillColor:'#d6bb55'});
                 {strokeWidth:6, strokeColor:'#d66d55', fillColor:'#d6bb55', highlightFillColor:'#d6bb55'});
var reuleauxPentagon = brd.create('curve', JXG.Math.Numerics.reuleauxPolygon(pol5.vertices, 5),  
var reuleauxPentagon = brd.create('curve', JXG.Math.Numerics.reuleauxPolygon(pol5.vertices, 5),  

Revision as of 20:26, 3 October 2010

The underlying JavaScript code