Difference between revisions of "Rectangles"

From JSXGraph Wiki
Jump to navigationJump to search
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});
  

Revision as of 14:54, 14 October 2014