polygon strokecolor
HTML
<script src="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraphcore.js"></script>
<link rel="stylesheet" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css">
<div id="box" class="jxgbox" style="width: 500px; height: 500px;"></div>
JavaScript
var i, pol,
board = JXG.JSXGraph.initBoard('box', {boundingbox: [-10, 10, 10, -10]}),
coords = [
[-4, 4],
[4, 4],
[0, 0],
[-4, -4]
],
p = [];
for (i = 0; i < coords.length; i++) {
p.push(board.create('point', coords[i]));
}
pol = board.create('polygon', p, {
borders: {
strokeColor: 'pink',
strokeWidth: 4
}
});