Difference between revisions of "Dependent gliders"

From JSXGraph Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<jsxgraph width="600" height="600">
 
<jsxgraph width="600" height="600">
 
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-5,5,5,-5], axis:true});
 
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-5,5,5,-5], axis:true});
var P0 = brd.create('point', [-4,-1], {name:''});
+
var P0 = brd.create('point', [-4,-1], {name:'', face:'[]'});
var P1 = brd.create('point', [4,-1], {name:''});
+
var P1 = brd.create('point', [4,-1], {name:'', face:'[]'});
 
var li = brd.create('line', [P0,P1]);
 
var li = brd.create('line', [P0,P1]);
 
var A = brd.create('glider', [0,-1,li]);
 
var A = brd.create('glider', [0,-1,li]);

Revision as of 21:11, 10 January 2012