Fix Lua example.
@@ -6,7 +6,7 @@ local ts = require("tinysplinelua")
spline = ts.BSpline(7)
-- Setup control points.
-ctrlp = spline.ctrlp
+ctrlp = spline.controlPoints
ctrlp[1] = -1.75 -- x0
ctrlp[2] = -1.0 -- y0
ctrlp[3] = -1.5 -- x1
@@ -21,10 +21,10 @@ ctrlp[11] = 0.0 -- x5
ctrlp[12] = 0.5 -- y5
ctrlp[13] = 0.5 -- x6
ctrlp[14] = 0.0 -- y6
-spline.ctrlp = ctrlp
+spline.controlPoints = ctrlp
-- Evaluate `spline` at u = 0.4 using 'evaluate'.
-result = spline:evaluate(0.4).result
+result = spline:eval(0.4).result
print("x = ", result[1], "y = ", result[2]);
-- Derive `spline` and subdivide it into a sequence of Bezier curves.
