Difference between revisions of "Desargues's theorem"

From JSXGraph Wiki
Jump to navigationJump to search
Line 24: Line 24:
 
var s3 = board.create('segment', [p2, p3], {color: 'red'});
 
var s3 = board.create('segment', [p2, p3], {color: 'red'});
  
var par1 = board.create('parallel', [s1, q1], {color: 'black'});
+
var par1 = board.create('parallel', [s1, q1], {visible: false});
var par2 = board.create('parallel', [s2, q1], {color: 'black'});
+
var par2 = board.create('parallel', [s2, q1], {visible: false});
  
 
var q2 = board.create('intersection', [par1, l2], {name:'q_2', color: 'black'});
 
var q2 = board.create('intersection', [par1, l2], {name:'q_2', color: 'black'});
 
var q3 = board.create('intersection', [par2, l3], {name:'q_3', color: 'black'});
 
var q3 = board.create('intersection', [par2, l3], {name:'q_3', color: 'black'});
  
 +
var s4 = board.create('segment', [q1, q2], {color: 'black'});
 +
var s5 = board.create('segment', [q1, q3], {color: 'black'});
 +
var s6 = board.create('segment', [q2, q3], {color: 'red'});
  
 
</jsxgraph>
 
</jsxgraph>

Revision as of 22:12, 2 May 2021

The underlying JavaScript code