Skip to main content

Hobby

hobby-to-cubic-open

hobby-to-cubic-open() -> array 

Calculates a bezier spline for an open Hobby curve through a list of points. Returns an array of beziers

points:

List of points

ta:

Default: auto

Outgoing tension per point

tb:

Default: auto

Incoming tension per point

rho:

Default: auto

The rho function of the form (float, float) => float

omega:

Default: auto

Tuple of the curl at the start end end of the curve (start, end) as floats

hobby-to-cubic-closed

hobby-to-cubic-closed() -> array 

Calculates a bezier spline for a closed Hobby curve through a list of points. Returns an array of beziers.

points:

List of points

ta:

Default: auto

Outgoing tension per point

tb:

Default: auto

Incoming tension per point

rho:

Default: auto

The rho function of the form (float, b) => float

hobby-to-cubic

hobby-to-cubic() -> array 

Calculates a bezier spline for a Hobby curve through a list of points. Returns an array of beziers.

points:

List of points

ta:

Default: auto

Outgoing tension per point

tb:

Default: auto

Incoming tension per point

rho:

Default: auto

The rho function of the form (float, float) => float

omega:

Default: auto

Tuple of the curl at the start end end of the curve (start, end) as floats

close:

Default: false

Close the curve