NumbersRepresentation
This repository presents a numbers vizualizer in a polar base. This small project has been entirely made in Rust ! This is an idea that has been brought to me after watching a video about the Dirichlet Theorem from the Youtube Channel 3blue1Brown. You can check the video right here.
Prerequisites
The project is built with following libraries, tools and utilitaries:
Install Rust
As it is built with Rust, in order to build the project, you need to have the compiler installed ! As a reminder, here is how you install it:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Install SDL tools
- On MacOS:
Assuming you have homebrew installed, please type the following command in your terminal:
brew install sdl2 sdl2_gfx sdl2_image sdl2_ttf
- On Ubuntu:
In order to install the SDL tools on your Ubuntu, please type the following command in your terminal:
sudo apt install libsdl2-2.0-0 libsdl2-gfx-1.0-0 libsdl2-image-2.0-0 libsdl2-ttf-2.0-0
Usage
First, you need to clone the repository. If you have an ssh key registered, please type following command:
git clone [email protected]:LilianSchall/NumbersRepresentation.git && cd NumbersRepresentation
- Build the project:
With Rust and all its tools with it installed, type the following command:
cargo build
- Run the project:
Simply type the following command:
cargo run
- Commands:
Pressing A will show/unshow the Axes,
Pressing N will only show prime numbers/ show all numbers,
Pressing down-arrow will make you unzoom,
Pressing up-arrow will make you zoom in the graph !
Contacts
If you have any question about the project, feel free to ask me on social media !