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

https://github.com/mufeedvh/tupperplot

Tupper's self-referential formula plotting itself on a framebuffer with Rust.
https://github.com/mufeedvh/tupperplot

art generative-art math rust tupper-formula

Last synced: over 1 year ago
JSON representation

Tupper's self-referential formula plotting itself on a framebuffer with Rust.

Awesome Lists containing this project

README

          

# `tupperplot` 📐




a showcase reel of tuppers formula, pacmans, and the euler's identity being plotted repeatedly


**Tupper's self-referential formula** plotting itself on a framebuffer... and Pacman and the Euler's identity too!

## What's this formula?






tupper's self-referential formula




Tupper's self-referential formula is a formula that visually represents itself when graphed at a specific location in the (x, y) plane.[src]

### Resources

- [**Wikipedia**](https://en.wikipedia.org/wiki/Tupper%27s_self-referential_formula)
- [**Numberphile's Video**](https://www.youtube.com/watch?v=_s5RFgd59ao)

## Installation

**Compile:**

```
$ git clone https://github.com/mufeedvh/tupperplot.git
$ cd tupperplot/
$ cargo run --release
```

**Linux Dependencies:**

```shell
$ sudo apt install libxkbcommon-dev libwayland-cursor0 libwayland-dev
```

## Usage

**Generate Tupper's self-referential formula itself:**

```
$ tupperplot tuppers
```

**Generate Pacman Plot:**

```
$ tupperplot pacman
```

**Generate Euler's Identity Plot:**

```
$ tupperplot euler
```

### Implementation Details

- `BigNumber` / `BigInt` - https://github.com/rust-num/num-bigint
- Bitmap Rendering - https://github.com/sondrele/rust-bmp
- Bitmap Manipulation - https://github.com/AlecDivito/rustbitmap
- Framebuffer - https://github.com/emoon/rust_minifb

---