https://github.com/torvaney/elm-chaos-game
https://github.com/torvaney/elm-chaos-game
elm-lang numberphile
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/torvaney/elm-chaos-game
- Owner: Torvaney
- Created: 2017-05-12T22:34:59.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-17T21:30:00.000Z (about 9 years ago)
- Last Synced: 2025-02-28T22:24:18.133Z (over 1 year ago)
- Topics: elm-lang, numberphile
- Language: Elm
- Homepage: https://torvaney.github.io/projects/chaosgame.html
- Size: 89.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chaos game
The algorithm goes like this:
1. Pick a target point (large circle) at random
2. Go halfway between the current position and the target position
3. Mark the new point (small circle)
4. Repeat from `1`
Do you see a pattern emerge?
Inspired by [Numberphile](https://www.youtube.com/watch?v=kbKtFN71Lfs).
## Preview
[](https://torvaney.github.io/projects/chaosgame.html)
## Compile
Compile to javascript with `elm-make`
```
elm-make src/elm/Main.elm --output src/static/js/main.js
```