Share JSXGraph: example "Fill the intersection area of two circles"

JSXGraph
Share JSXGraph: example "Fill the intersection area of two circles"
This website is a beta version. The official release will be in **2023**.

Fill the intersection area of two circles

// Define the id of your board in BOARDID

const board = JXG.JSXGraph.initBoard(BOARDID, {
    boundingbox: [-1, 5, 5, -1],
    axis: true
});

// Create two circles
var p1 = board.create('point', [1, 1]);
var p2 = board.create('point', [3, 0]);
var c1 = board.create('circle', [p1, p2], {strokeWidth:1});

var p3 = board.create('point', [4, 1]);
var p4 = board.create('point', [2, 0]);
var c2 = board.create('circle', [p3, p4], {strokeWidth:1});

// Intersecting curve
var a = board.create('curveintersection', [c1, c2], {
    strokeColor: 'red', 
    strokeWidth:3, 
    fillColor: 'yellow',
    fillOpacity: 0.3,
    highlightFillColor: 'blue',
    highlightFillOpacity: 0.3,
    hasInnerPoints: true
});