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.

This page is generated from the comments in src/core/shape/curves.js . Please feel free to edit it and submit a pull request!

Related References