ControlPoints

ControlPoints

{Object} ControlPoints Defines the shape of a bezier curve

Constructor

new ControlPoints(p0, p1, p2, p3)

Description:
  • Create control points
Source:
Properties:
Name Type Description
p0 number Control point one
p1 number Control point two
p2 number Control point three
p3 number Control point four
Parameters:
Name Type Description
p0 number Control point one
p1 number Control point two
p2 number Control point three
p3 number Control point four

Methods

p0(value)

Description:
  • Set control point one
Source:
Parameters:
Name Type Description
value number Control point one

p0() → {number}

Description:
  • Get control point one
Source:
Returns:
Control point one
Type
number

p1(value)

Description:
  • Set control point one
Source:
Parameters:
Name Type Description
value number Control point two

p1() → {number}

Description:
  • Get control point one
Source:
Returns:
Control point two
Type
number

p2(value)

Description:
  • Set control point one
Source:
Parameters:
Name Type Description
value number Control point three

p2() → {number}

Description:
  • Get control point one
Source:
Returns:
Control point three
Type
number

p3(value)

Description:
  • Set control point one
Source:
Parameters:
Name Type Description
value number Control point four

p3() → {number}

Description:
  • Get control point one
Source:
Returns:
Control point four
Type
number

points(value)

Description:
  • Set points
Source:
Parameters:
Name Type Description
value number Points of object

points() → {number}

Description:
  • Get points
Source:
Returns:
Points of object
Type
number