Spirograph - geometric construction: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
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> | ||