Highlight from Text: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 6: Line 6:
<script type="text/javascript">
<script type="text/javascript">
  var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-4, 2, 6, -2]});
  var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-4, 2, 6, -2]});
  var p1 = brd.createElement('point',[-1,1], {name:'A',style:6});
  var p1 = brd.create('point',[-1,1], {name:'A',style:6});
  var p2 = brd.createElement('point',[2,-1], {name:'B',style:6});
  var p2 = brd.create('point',[2,-1], {name:'B',style:6});
  var l = brd.createElement('line',["A","B"], {strokeColor:'#00ff00',strokeWidth:2});
  var l = brd.create('line',["A","B"], {strokeColor:'#00ff00',strokeWidth:2});
</script>
</script>
</html>
</html>

Revision as of 16:24, 20 February 2013

Line