A Processing file that draws any regular polygon and runs the following algorithm:
- draws a random point
- chooses a random vertex on the polygon
- moves point coordinates to a position halfway between random vertex and last location (in newer version, divisor can be any constant)
- draws a new point at location
- repeats steps 2-4 indefinetely
Inspired by the fact that if the polygon is an equilateral triangle, the pattern formed is a Sierpinski Triangle.