Skip to content

Curve:point

since 1.1.0

Get / Set the point of the custom curve by index.

local x = curve:point([indexintegerx])

Parameters

Name Type Required Description
index(integer),x number optional and y (number, optional)

Returns

x (number) and y (number)