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

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.