Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ivan-guerra/sierpinski

Create a Sierpinski Triangle animation using ncurses
https://github.com/ivan-guerra/sierpinski

sierpinski-triangle

Last synced: 17 days ago
JSON representation

Create a Sierpinski Triangle animation using ncurses

Awesome Lists containing this project

README

        

# Sierpinski

https://github.com/ivan-guerra/sierpinski/assets/13009513/b6e31e62-b2a4-45eb-a7a9-85709cbfd73c

`sierpinski` is a command line application that renders the [Sierpinski
triangle][1] in your terminal. This implementation takes the [Chaos Game][2]
approach to generating the triangle. See below for the program usage.

```
Create a Sierpinski Triangle animation

Usage: sierpinski [OPTIONS]

Options:
-i, --max-iterations
max number of simulation iterations [default: 10000]
-r, --refresh-rate-msec
delay between iterations in microseconds [default: 100]
-h, --help
Print help
-V, --version
Print version
```

[1]: https://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle
[2]: https://en.wikipedia.org/wiki/Sierpi%C5%84ski_triangle#Chaos_game