Bezier curves: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 19: | Line 19: | ||
p.push(brd.createElement('point',[2,-0.5],{strokeColor:col,fillColor:col})); // data point | p.push(brd.createElement('point',[2,-0.5],{strokeColor:col,fillColor:col})); // data point | ||
var c = | var c = brd.createElement('curve', JXG.Math.Numerics.bezier(p),{strokecolor:'blue', strokeOpacity:0.8, strokeWidth:3}); | ||
</jsxgraph> | </jsxgraph> |