Reference curveTightness()

curveTightness()

Adjusts the way curve() and curveVertex() draw.

Spline curves are like cables that are attached to a set of points. curveTightness() adjusts how tightly the cable is attached to the points.

The parameter, tightness, determines how the curve fits to the vertex points. By default, tightness is set to 0. Setting tightness to 1, as in curveTightness(1), connects the curve's points using straight lines. Values in the range from –5 to 5 deform curves while leaving them recognizable.

Examples

Syntax

curveTightness(amount)

Parameters

amount
Number:

amount of tightness.

Notice any errors or typos? Please let us know. Please feel free to edit src/core/shape/curves.js and open a pull request!

Related References