This is a p5.js sketch to demonstrate the drawing of a polygon and some related geometric functions.