Here's my chaos game sim I showed off over on Twitter yesterday!
EDIT: Fixed a bug with 2 edges, and also fixed some rounding issues.
Also, here's how to control this:
While viewing chaos:
- Z will open the menu.
- X will change rotate modes, but only if you have a finite amount of points.
While in menu:
- Left and Right will edit the current value.
- Up and Down will move your cursor.
- Z will close the menu.
Rotate modes go like this:
- Don't rotate
- Do rotate
- Do rotate, but you can control it with Left and Right.
EDIT 2: Added step option, which lets you run the chaos game faster.
Somehow, box causes extreme lag. To reproduce, just add this code:
box(0, 0, 0, 127, 127, 63, 7) |
I don't want to kill people's browsers, but here's a cart. Play at your own risk.
Edit: Updated with some stuff that better demonstrates how big the lag spike is. Press z to lag. Sorry for these frequent edits.