If you select Radial mode, a circle will be drawn and a few interspersed points will connected. This code supports arbitrary shapes by using a fast Delaunay trangulation library you can find at https://github.com/mapbox/delaunator. The key point of this example is that sometimes, something can be aesthetically pleasing, without requiring a lot of complexity.
Mesh
This code demonstrates a drawing a mesh from a set of points with a visual effect drawn within triangles.