Difference between revisions of "Highlight from Text"

From JSXGraph Wiki
Jump to navigationJump to search
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 18:24, 20 February 2013

Line