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, fillColor:'blue'}); | var O = brd.create('point',[0,0],{name:'O',fixed:true, fillColor:'blue', strokeColor:'blue'}); | ||
var A = brd.create('point',[ | var A = brd.create('point',[1,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',[ | var B = brd.create('glider',[0.7,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', fillColor:'blue'}); | var C = brd.create('reflection',[g1,A],{name:'C', fillColor:'blue', strokeColor:'blue'}); | ||
var M = brd.create('mirrorpoint',[B,O], {name:'M', fillColor:'blue'}); | var M = brd.create('mirrorpoint',[B,O], {name:'M', fillColor:'blue', strokeColor:'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'", fillColor:'blue'}); | var C2 = brd.create('parallelpoint',[O,M,C], {name:"C'", fillColor:'blue', strokeColor:'blue'}); | ||
</jsxgraph> | </jsxgraph> | ||