https://en.wikipedia.org/wiki/Chaos_game
- Take a given shape (Just regular polygons in this case).
- Plot a Random point
- Pick a random vertex (Following chosen restrictions)
- Go halfway to that vertex and plot a point
- Repeat steps 3-4 1000000 times
- Get pretty fractal
Jackson https://github.com/FasterXML/jackson (used for preset saving/loading).
Maven pom.xml is included, you can just use that.
No Prefence - Pure random
Equivalence - must be or must not be equal to the last chosen vertex (v-1) and/or the vertex before last (v-2)
Adjacency - must be or must not be adjacent to (v-1) and/or (v-2)
Offset - Similar to Adjacency but a custom number of 'hops' over instead of just 1

Red -> Orange -> Yellow, 10000000 iterations

Red -> Orange -> Yellow, 10000000 iterations

Red -> Orange -> Yellow, 10000000 iterations

Green -> Cyan -> White, 10000000 iterations

White -> Cyan -> Blue, 10000000 iterations

Red -> Orange -> Yellow, ~15000000 iterations

Red -> Orange -> Yellow, 15000000 iterations
and many more...
I'm interested in making this in geogebra, so it's much more shareable. However implementing the vertex restrictions seems difficult as it's mostly a calculator not a programing language.