如何在JSXgraph中的圆外阴影

时间:2019-08-23 15:03:28

标签: javascript math geometry jsxgraph

我目前正在尝试在JSXgraph中的圆圈内外着色,类似于不等式。

我当前创建圆的代码:

 var A = board.create('point', [h, k], { name: '', size: 0, fixed: true}),
        B = board.create('point', [h, k+r], { name: '', size: 0, fixed: true}),
        graph = board.create('circle', [A, B], { id: field, size: 0, fixed: true });
    graph.on('down', function (e, i) {
        showMaster(this.id);
    });
    graphMap.set(field, graph);
    inequality(">", field, graph, color);

我发现您可以使用以下对象专有性在内部着色:

{strokeWidth: 2, dash: 2, fillColor: 'red', fillOpacity: 0.3}

但是,外面没有任何阴影。

有什么建议吗?

0 个答案:

没有答案