45d534b640b9f3603260b7d3a6eda3964d553661
Description
Prints a spinning ASCII torus (mathematical name for a doughnut-shaped object) on the terminal. Original post by Andy Sloane can be found here.
How to run
- Clone or download and extract the repository
- Open a terminal inside the project directory
- Follow the steps for your Operating System
For Windows
Prerequisites for Windows 10 or Windows 11
How to run the Python version
- Type
python main.pyin the shell to run the Python version
How to compile the C version
- Type
gcc -o main.exe main.c -lmin the shell to compile using GCC - Type
clang -o main.exe main.c -lmin the shell to compile using Clang
How to run the C version
- Type
.\main.exein the shell to run the program
For Linux
Prerequisites for Debian based distros
sudo apt install maketo install Makemake debto install the required compilers
Prerequisites for Arch based distros
sudo pacman -S maketo install Makemake archto install the required compilers
How to run the programs
make cto run the C versionmake pyto run the Python version
How to clean up the executable
make cleanto clean after execution
Updates
- Added support for dynamic resolution based on current terminal size
- Added Windows support
Screenshot
Languages
C
98.3%
Makefile
1.7%
