B-spline: Difference between revisions

(Added closing lang tag to Julia example.)
Line 36:
plt = plot(map(a -> a.x, controlpoints), map(a -> a.y, controlpoints))
savefig(plt, "BSplineplot.png")</lang>
 
=={{header|Mathematica}}/{{header|Wolfram Language}}==
<lang Mathematica>Graphics[
BSplineCurve[{{171, 171}, {185, 111}, {202, 109}, {202, 189}, {328,
160}, {208, 254}, {241, 330}, {164, 252}, {69, 278}, {139,
208}, {72, 148}, {168, 172}}, SplineClosed -> True,
SplineDegree -> 2]]</lang>
{{out}}
Outputs a graphical representation of a B-spline.
 
=={{header|Wren}}==
1,111

edits