Skip to content

Chaos Game Toy

Choose a tag to compare

@BLARGoMATIC BLARGoMATIC released this 12 Feb 17:32
· 71 commits to master since this release

https://en.wikipedia.org/wiki/Chaos_game

Requirements:

Java 8

Current Features:

Choose number of sides
Choose number of iterations

Vertex Choice restrictions:

The rules that the program will follow when selecting a random vertex. Some combinations of these will result in no picture at all.

A hint: the 'No' option for each restriction is generally more interesting/pretty than the 'Yes' option.

v1 (last chosen vertex)
v2 (before last vertex)

Equivalence: chosen vertex must (or must not) be equal. (must be equal doesn't really do anything) NP means "no preference"
Adjacent: chosen vertex must (or must not) be adjacent. (Interesting either way. Set a pentagon v1 adjacency to 'No' for a star)
Offset: like adjacent, but instead of being locked into 1 and -1, you can choose whatever number (modulus number of sides). A value of 0 means no preference.
Offset2: second rule set that works just like the first offset.

Color fading:

Warmer the color, the more dots that have landed on that spot. Mess with the iterations to make it brighter/darker.

Saving:

If you find a design you like, you can save it as a png for use wherever. It's math, nobody owns these designs.