See the Pen classic-stroke-example-shape-2 by soritesparadox (@soritesparadox) on CodePen.