The docs very skilfully show how to add a path that is known at "compile time", but since the input to path.path it's not immediately obvious how to create a path from say, a list of points.
I would like to suggest adding an example like that, or editing the current example, to show how one might deal with user generated points, or with points read from a file.