Rectangles: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="300" height="300" box="box1">
<jsxgraph width="300" height="300" box="box1">
(function() {
var b1 = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 5, 5, -5], grid:true});
var b1 = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 5, 5, -5], grid:true});
var p1 = b1.create('point', [-2,-2]),
var p1 = b1.create('point', [-2,-2]),
Line 9: Line 10:
p3.isDraggable = true;
p3.isDraggable = true;
p4.isDraggable = true;
p4.isDraggable = true;
})();
</jsxgraph>
</jsxgraph>




<jsxgraph width="300" height="300" box="box2">
<jsxgraph width="300" height="300" box="box2">
(function() {
var b2 = JXG.JSXGraph.initBoard('box2', {boundingbox: [-5, 5, 5, -5], axis:true, grid:true});
var b2 = JXG.JSXGraph.initBoard('box2', {boundingbox: [-5, 5, 5, -5], axis:true, grid:true});
var p1 = b2.create('point', [-2,-2]),
var p1 = b2.create('point', [-2,-2]),
Line 26: Line 29:
p3.isDraggable = true;
p3.isDraggable = true;
p4.isDraggable = true;
p4.isDraggable = true;
})();
</jsxgraph>
</jsxgraph>



Revision as of 14:08, 14 October 2014