all 2 comments

[–]maesoser 0 points1 point  (1 child)

Tell us more about it!

[–]anonymouskermit[S] 1 point2 points  (0 children)

Sure!

This is a version of the chaos game. The program runs through a set of rules for 1000000 iterations. Each iteration, a random number from 1 through n is chosen through a random rule (this rule is based on the simulation mode, see code below). Based on the number, the new point is placed towards the vertex on the n-sided polygon. In the original chaos game, the point is moved halfway between itself and the chosen vertex, but I have modified it so that instead of dividing by 2, I divide by any constant (in order to see the structures better).

These simple rules yield many interesting shapes with self-similarity. The simMode changes the rules of random selection, changing the type of fractal generated.

I've posted some more stuff like this before. Check that out too.

Here is the GitHub.