<jsxgraph width="100%, 100%, 100%" aspect-ratio="5/2, 5/2, 5/2" numberOfBoards="3" title="Circles" description="This construction was copied from JSXGraph examples database: http://jsxgraph.uni-bayreuth.de/share/" useGlobalJS="false">
/*
This example is licensed under a
Creative Commons Attribution 4.0 International License.
https://creativecommons.org/licenses/by/4.0/
Please note that you have to mention
The Center of Mobile Learning with Digital Technology
in the credits.
*/
(function() {
const board = JXG.JSXGraph.initBoard(BOARDID0, {
boundingbox: [-5, 2, 5, -2]
});
var a = board.create('point', [0, 0], {
name: 'A',
size: 4
});
var b = board.create('point', [2, 0], {
name: 'B',
size: 4
});
var ci = board.create('circle', ["A", "B"], {
strokeColor: '#00ff00',
strokeWidth: 2
});
})();
(function() {
const board = JXG.JSXGraph.initBoard(BOARDID1, {
boundingbox: [-5, 2, 5, -2]
});
var a = board.create('point', [0, 0], {
name: 'A',
size: 4
});
var b = board.create('point', [2, 0], {
name: 'B',
size: 4
});
var ci = board.create('circle', [a, b], {
strokeWidth: 3,
dash: 2,
fillColor: '#ffff00',
fillOpacity: 0.3
});
})();
(function() {
const board = JXG.JSXGraph.initBoard(BOARDID2, {
boundingbox: [-5, 2, 5, -2]
});
var a = board.create('point', [0, 0], {
name: 'A',
size: 4
});
var b = board.create('point', [2, 0], {
name: 'B',
size: 4
});
var ci = board.create('circle', [a, b], {
strokeWidth: 1,
fillColor: '#555500',
fillOpacity: function() {
return b.X() * 0.25;
}
});
})();
</jsxgraph>