node.newBezierPath(x0, y0, x1, y1, a0x, a0y, a1x, a1y [,...]  )

Creates a Bezier Path that can be used as the basis for shapes or actions that move nodes.

Parameters

x0the x-coordinate of the first point on the path
y0the y-coordinate of the first point on the path
x1the x-coordinate of the second point on the path
y1the y-coordinate of the second point on the path
a0xthe x-coordinate of the first anchor point
a0ythe y-coordinate of the first anchor point
a1xthe x-coordinate of the second anchor point
a1ythe y-coordinate of the second anchor point

Expects 3N + 1 points (x,y).  1 start point plus N movements consisting of destination plut two 2 control points.

Returns

The created Path.

Example

-- Creates a curved path from point (0,0) to point (200, 200)
local myPath = path.newBezierPath(0, 0, 200, 200, 0, 200, 200, 0)
A mathematical description of a series of shapes or lines.
Close