Welcome to the spinniest piece of ASCII art you'll ever see. Inspired by that legendary video of the Russian coder caught in an altercation mid-hack, this project is an homage to both retro coding and the beloved demo scene. 🤘
A self-contained C program that renders a 3D spinning donut in your terminal! Sure, it's just ASCII characters and math, but it's a party on your screen.
-
Open your terminal and navigate to the repo directory.
-
Compile & run:
make && ./donut
- Open the Developer Command Prompt for Visual Studio.
- Navigate to the repo folder:
cd path\to\repo
- Build with:
or manually:
build.bat
cl /O2 donut.c
- Run:
donut.exe
If CMD.exe is cutting off the donut, run the .\tools\setsize.cmd
script, or copy and paste this into the Run dialog (Win+R) or a terminal:
cmd /k mode con: cols=80 lines=25 & donut.exe
This ensures the console is sized correctly before launching the spinning masterpiece.
Bonus Idea: Add Sound!
Why not make the donut program play a beep sound every time it spins? Modify donut.c
to include:
#include <windows.h> // Windows beep
Beep(500, 50); // Frequency 500Hz, Duration 50ms
For Linux/macOS, use:
system("echo -e '\a'");
💡 This will make the donut *bloop* as it spins, creating a cursed ASMR experience.
- CHANGELOG.md - Because even meme projects need version history.
- memes/ folder: A collection of memes inspired by that epic coding moment.
- tools/ folder: Contains a tool to convert MP4s to GIFs using ffmpeg because why not?
- tools/setsize.cmd - A script to auto-set the correct CMD.exe dimensions.
Have a twist for the donut? Open a pull request! Let's make this donut spin harder, better, faster, stronger.
This project is released under the MIT License. Enjoy the spin, share the fun, and don’t take life (or your terminal output) too seriously!