This work comes from a sketch I draw with many clouds of random shapes.
Doing some tests with the great and powerful paperjs library (http://paperjs.org/), I saw that you can actually generate interesting shapes using a path that randomly picks up points evenly distributed around a circle, that is the vertices of a regular polygon.
Here the shape randomly picks up the vertices of 9 different polygons: square, pentagon, hexagon, heptagon, octagon, enneagon, decagon, hendecagon and dodecagon (4 to 12 vertices).
Go to https://www.artgorithm.com/experiment-27-polygon-shape/ or https://twitter.com/artgorithme for details.
Press: - 'p' to download a png - 'a' to add / remove the path and the points used to create the shape.