Difference between revisions of "Rectangles"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 3: | Line 3: | ||
var p1 = b1.create('point', [-2,-2]), | var p1 = b1.create('point', [-2,-2]), | ||
p2 = b1.create('point', [3,3]), | p2 = b1.create('point', [3,3]), | ||
− | p3 = b1.create('point', [function(){return p1.X()},function(){return p2.Y()}]), | + | p3 = b1.create('point', [function(){return p1.X()},function(){return p2.Y()}], {color:'blue'}), |
− | p4 = b1.create('point', [function(){return p2.X()},function(){return p1.Y()}]), | + | p4 = b1.create('point', [function(){return p2.X()},function(){return p1.Y()}], {color:'blue'}), |
rect = b1.create('polygon',[p1,p3,p2,p4],{hasInnerPoints:true}); | rect = b1.create('polygon',[p1,p3,p2,p4],{hasInnerPoints:true}); | ||