Input the number of vertices you want the figure to have, and it will generate a figure based on the Numberphile "Chaos Game". I recommend 3, because that's the one that seems to work with the effect.
This was an attempt at making a scalable version of this fractal generator, though honestly I think it only works for the triangle. Pretty tempted to try Barnsley's Fern next. Credit to @BananaLiquid2 for giving me the idea to do this.