Difference between revisions of "Spirograph - geometric construction"

From JSXGraph Wiki
Jump to navigationJump to search
Line 21: Line 21:
 
</jsxgraph>
 
</jsxgraph>
  
 +
=== Threefold speed ===
 
<jsxgraph width="600" height="600" box="jxgbox2">
 
<jsxgraph width="600" height="600" box="jxgbox2">
 
(function() {
 
(function() {
Line 31: Line 32:
 
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', strokeColor:'blue'});
 
var C = brd.create('reflection',[g1,A],{name:'C', fillColor:'blue', strokeColor:'blue'});
 +
 +
var g1a = brd.create('line',[O,C], {strokeColor:'lightgray'});
 +
var C2 = brd.create('reflection',[g2,B],{name:'C_2', fillColor:'blue', strokeColor:'blue'});
  
 
var M = brd.create('glider',[2,2,g1], {name:'M', fillColor:'red', strokeColor:'red'});
 
var M = brd.create('glider',[2,2,g1], {name:'M', fillColor:'red', strokeColor:'red'});
 
var k2 = brd.create('circle',[M,B],{name:'k'});   
 
var k2 = brd.create('circle',[M,B],{name:'k'});   
  
var gpar = brd.create('parallel',[O,C,M], {name:"g", strokeColor:'lightgray'});
+
var gpar = brd.create('parallel',[O,C2,M], {name:"g", strokeColor:'lightgray'});
 
var Cprime = brd.create('intersection',[gpar,k2,0], {name:"C'", fillColor:'blue', strokeColor:'blue'});
 
var Cprime = brd.create('intersection',[gpar,k2,0], {name:"C'", fillColor:'blue', strokeColor:'blue'});
  

Revision as of 18:16, 19 July 2010

Threefold speed