Difference between revisions of "Rolling Reuleaux pentagon"

From JSXGraph Wiki
Jump to navigationJump to search
Line 15: Line 15:
 
// Pentagon
 
// Pentagon
 
var A = brd.create('point',[-2,-2]);
 
var A = brd.create('point',[-2,-2]);
var B = brd.create('point',[2,0]);
+
var B = brd.create('point',[0,0]);
 
var pol5 = brd.create('regularpolygon',[A,B,5], {withLines:false, fillColor:'none', highlightFillColor:'none', fillOpacity:0.0});
 
var pol5 = brd.create('regularpolygon',[A,B,5], {withLines:false, fillColor:'none', highlightFillColor:'none', fillOpacity:0.0});
 
for (var i=0;i<5;i++) pol5.vertices[i].setProperty({color:'#3d1c24'});
 
for (var i=0;i<5;i++) pol5.vertices[i].setProperty({color:'#3d1c24'});

Revision as of 21:30, 3 October 2010

The underlying JavaScript code