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.
- Host: GitHub
- URL: https://github.com/mufeedvh/tupperplot
- Owner: mufeedvh
- Created: 2022-08-31T18:06:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-31T18:51:35.000Z (almost 4 years ago)
- Last Synced: 2024-05-23T09:32:27.466Z (about 2 years ago)
- Topics: art, generative-art, math, rust, tupper-formula
- Language: Rust
- Homepage:
- Size: 1.67 MB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `tupperplot` 📐
**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 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
---