Chaos Game

The chaos game, previously seen on Frank Noschese’s 180 blog and Jonathan Clayton’s blog Infinite Sums.

I had to make this myself (deja vu?). Here’s what I made (processing 2.0):


Check it out live. All these live links will probably work great on your smartphone too. Source code.



Can you create any modifications from this source code? Getting started is relatively easy: download processing 2.0.1, paste the source code in and press run.

Note: Thanks to the Math open reference for an applet to calculate the vertex coordinates for the hexagon and pentagon and saving me a little time.

One thought on “Chaos Game

Leave a Reply

Your email address will not be published. Required fields are marked *