Catenary Curve

JavaScript library to approximate and draw the path for a hanging rope (catenary curve) on a HTML canvas.

  • GitHub
  • npm
  • Example

The amount of segments used for the curve. Higher value = more realistic.

The maximum iterations to determine the catenary parameter.

The total length of the chain. This is divided by the amount of segments.

Created by dulnan, adapted from work by poiasd.