Fill the intersection area of three circles: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 42: | Line 42: | ||
// Create three arcs surrounding the intersection area | // Create three arcs surrounding the intersection area | ||
var c1 = brd.create('arc', [p1, i1, i3], {visible:true}); | var c1 = brd.create('arc', [p1, i1, i3], {visible:true, strokeWidth:3}); | ||
//var c2 = brd.create('arc', [p3, i3, i2], {visible:true}); | //var c2 = brd.create('arc', [p3, i3, i2], {visible:true}); | ||
//var c3 = brd.create('arc', [p5, i2, i1], {visible:true}); | //var c3 = brd.create('arc', [p5, i2, i1], {visible:true}); | ||
/* | |||
// Join the two arcs and fill the area. | // Join the two arcs and fill the area. | ||
var c3 = JXG.joinCurves(brd, [c1,c2], | var c3 = JXG.joinCurves(brd, [c1,c2], | ||
Line 52: | Line 53: | ||
fillColor:'yellow', fillOpacity:0.2 | fillColor:'yellow', fillOpacity:0.2 | ||
}); | }); | ||
*/ | |||
</jsxgraph> | </jsxgraph> | ||