Greetings, Scratcher Each iteration the polygon is rotated by a certain amount λ and shrunken so it's inscribed in the last iteration's polygon, which creates these beautiful patterns! Hover your mouse over the top part of the screen to show a number a parameters that you can tweak to your liking.
All code by me, @CasTur Some maths from StackExchange: https://math.stackexchange.com/questions/1095827/scaling-and-rotating-a-square-so-that-it-is-inscribed-in-the-original-square