Difference between revisions of "Spirograph - geometric construction"

From JSXGraph Wiki
Jump to navigationJump to search
Line 2: Line 2:
 
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5], keepaspectratio:true});
 
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-5,5,5,-5], keepaspectratio:true});
  
var O = brd.create('point',[0,0],{name:'O',fixed:true});
+
var O = brd.create('point',[0,0],{name:'O',fixed:true, fillColor:'blue'});
 
var A = brd.create('point',[2,0],{name:'A'});
 
var A = brd.create('point',[2,0],{name:'A'});
 
var k = brd.create('circle',[O,A],{name:'k'});
 
var k = brd.create('circle',[O,A],{name:'k'});
 
var B = brd.create('glider',[1,1,k],{name:'B'});
 
var B = brd.create('glider',[1,1,k],{name:'B'});
 
var g1 = brd.create('line',[O,B], {strokeColor:'lightgray'});
 
var g1 = brd.create('line',[O,B], {strokeColor:'lightgray'});
var C = brd.create('reflection',[g1,A],{name:'C'});
+
var C = brd.create('reflection',[g1,A],{name:'C', fillColor:'blue'});
  
var M = brd.create('mirrorpoint',[B,O], {name:'M'});
+
var M = brd.create('mirrorpoint',[B,O], {name:'M', fillColor:'blue'});
 
var k2 = brd.create('circle',[M,B],{name:'k'});
 
var k2 = brd.create('circle',[M,B],{name:'k'});
var C2 = brd.create('parallelpoint',[O,M,C], {name:"C'"});
+
var C2 = brd.create('parallelpoint',[O,M,C], {name:"C'", fillColor:'blue'});
 
</jsxgraph>
 
</jsxgraph>
  

Revision as of 17:51, 19 July 2010