A C++ terminal application that generates a customizable 3D spinning donut animation. Users can interactively adjust the size and color of the donut through simple console inputs, creating a visually engaging ASCII art display. This project is an excellent demonstration of the use of mathematical models for ASCII art animation and ANSI escape codes for color management in the terminal.
- Interactive size and color customization for the ASCII donut
- Continuous 3D spinning animation effect
- Cross-platform compatibility for terminals supporting ANSI escape codes
- A C++ compiler (e.g., g++, clang++)
- Terminal or command prompt that supports ANSI escape codes for color output
- Clone the repository to your local machine:
git clone https://github.com/sherwinvishesh/ASCII-Donut-Animation.git
cd ASCII-Donut-Animation
cd src
- Compile the source code using a C++ compiler:
g++ -o donut src/circle.cpp -lm
-
Run the compiled application:
./donut
-
Follow the on-screen prompts to customize the size and color of your ASCII donut.
Contributions are welcome! Please feel free to submit pull requests, report bugs, or suggest new features.
This project is open source and available under the MIT License.
- Inspired by the mathematical beauty of ASCII art and terminal animations.
- Thanks to the C++ and open-source communities for their invaluable resources and support.
- Inspired by
Lex Fridmans
video titledDonut-shaped C code that generates a 3D spinning donut
Made with ❤️ by Sherwin