# Difference between revisions of "Highlight from Text"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
|||

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. | + | var p1 = brd.create('point',[-1,1], {name:'A',style:6}); |

− | var p2 = brd. | + | var p2 = brd.create('point',[2,-1], {name:'B',style:6}); |

− | var l = brd. | + | var l = brd.create('line',["A","B"], {strokeColor:'#00ff00',strokeWidth:2}); |

</script> | </script> | ||

</html> | </html> |