Polygonal fractals ft. The Chaos Game

Use your mouse or touch the canvas to place points of your own artistic polygon. Click Generate and watch the magic happen!

Stop to place more points and Reset to get a fresh canvas - Encore!

The generation of fractals is controlled by a fractional factor, which is key to the chaos game. Adjust this factor with the slider from 0 to 1 to get different results.

(Values less than 0.25 would probably not be charming)


Example: An equilateral triangle (plot 3 equispaced points) with factor = 0.5 yields the Sierpinski triangle.