clearing traces
clearing traces is important
by migerh
HTML
<script src="http://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.93/jsxgraphcore.js"></script>
<link rel="stylesheet" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css">
<div id="jxgbox" class="jxgbox" style="width:500px; height:500px;"></div>
JavaScript
board = JXG.JSXGraph.initBoard('jxgbox', {
boundingbox:[-4, 6, 10, -4],
axis: true,
grid: false,
keepaspectratio: true
});
p1 = board.createElement('point', [0, 0]);
p2 = board.createElement('point', [6, -1]);
c1 = board.createElement('circle', [p1, 2]);
c2 = board.createElement('circle', [p2, 1.5]);
g1 = board.createElement('glider', [6, 3, c1], {name:"D"});
c3 = board.createElement('circle', [g1, 4]);
g2 = board.createElement('intersection', [c2,c3,0], {name: "I"});
m1 = board.createElement('midpoint', [g1,g2], {name:"T", trace: true});