Javascript baby physics vector project

This is just a little test-if-I-can thing with js and vector logic to see if I could create a thread type of logic. The following codepen has 15 segments and an individuel segment length of 10 pixels:

See the Pen Baby-physics-vector-hair by Stephan Ryer (@sryer) on CodePen.

The following show the exact same code but with a segment count of 100, an individual segment length of 1 pixel and then it has gravity turned off:

See the Pen Baby-physics-vector-snake by Stephan Ryer (@sryer) on CodePen.