An open API service indexing awesome lists of open source software.

https://github.com/torvaney/elm-chaos-game


https://github.com/torvaney/elm-chaos-game

elm-lang numberphile

Last synced: 12 months ago
JSON representation

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
[![Screenshot](preview.png)](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
```