The algorithm goes like this:
- Pick a target point (large circle) at random
- Go halfway between the current position and the target position
- Mark the new point (small circle)
- Repeat from
1
Do you see a pattern emerge?
Inspired by Numberphile.
Compile to javascript with elm-make
elm-make src/elm/Main.elm --output src/static/js/main.js