Reducing points in polygon

For completeness’ sake, I’ve ended up making a p5js version too: :crazy_face: