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

https://github.com/jb3/chaos_game

Implementation of the Chaos Game in Elixir.
https://github.com/jb3/chaos_game

elixir elixir-lang fractal-algorithms scenic sierpinski

Last synced: 3 months ago
JSON representation

Implementation of the Chaos Game in Elixir.

Awesome Lists containing this project

README

        

# Chaos Game

An Elixir implementation of the Chaos Game using the Scenic GUI library.

The current values generate [Sierpinski Triangles](https://en.wikipedia.org/wiki/Sierpinski_triangle) but the logic is there for most of the other fractals produced by the chaos game to be produced.

## Screenshots

### Sierpinski Hexagon
![Imgur](https://i.imgur.com/wvMjJdT.png)

### Sierpinski Triangle
![Imgur](https://i.imgur.com/lP3by19.png)

## Usage

**Disclaimer: This project is horribly inefficient and requires a lot of processing power (it absolutely killed my laptop). However, the patterns are very nice**

1. Clone the repository
2. Install Elixir
3. `mix deps.get` inside the project
4. `mix scenic.run` inside the project
5. profit.