Code Monkey home page Code Monkey logo

ascii-donut-animation's Introduction

ASCII Donut Animation

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.

Features

  • Interactive size and color customization for the ASCII donut
  • Continuous 3D spinning animation effect
  • Cross-platform compatibility for terminals supporting ANSI escape codes

Getting Started

Prerequisites

  • A C++ compiler (e.g., g++, clang++)
  • Terminal or command prompt that supports ANSI escape codes for color output

Installation

  1. Clone the repository to your local machine:
 git clone https://github.com/sherwinvishesh/ASCII-Donut-Animation.git
 cd ASCII-Donut-Animation
 cd src
  1. Compile the source code using a C++ compiler:
g++ -o donut src/circle.cpp -lm
  1. Run the compiled application:

     ./donut
  2. Follow the on-screen prompts to customize the size and color of your ASCII donut.

    Contributing

Contributions are welcome! Please feel free to submit pull requests, report bugs, or suggest new features.

License

This project is open source and available under the MIT License.

Acknowledgements

  • 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 titled Donut-shaped C code that generates a 3D spinning donut

Made with ❤️ by Sherwin

ascii-donut-animation's People

Contributors

sherwinvishesh avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.