C_CPP_Animations is a collection of command-line animations and interactive projects written in C/C++. The repository includes animations such as:
- Loading with Percentage: A progress bar that updates with percentage values.
- Rotating Loading Symbol: An animation using a rotating symbol for a 360° effect.
- Spinning 3D Cube: A text-based 3D cube with special characters on each side.
Below is a simple view of how the project is organized:
C_CPP_Animations/
├── README.md # Project overview and instructions
├── LICENSE # MIT License
├── docs/ # Extra documentation (design notes, etc.)
│ └── design.md
├── src/ # All source code
│ ├── core/ # Shared code (common functions)
│ │ ├── animation.h
│ │ └── animation.c
│ ├── loading_percentage/ # Loading with Percentage project
│ │ ├── loading.c
│ │ └── Makefile
│ ├── rotating_symbol/ # Rotating Loading Symbol project
│ │ ├── rotating.c
│ │ └── Makefile
│ ├── spinning_cube/ # Spinning 3D Cube project
│ │ ├── cube.c
│ │ └── Makefile
│ ├── interactive_dashboard/ # Interactive Dashboard project
│ │ ├── dashboard.c
│ │ └── Makefile
│ ├── animated_clock/ # Animated Clock project
│ │ ├── clock.c
│ │ └── Makefile
│ ├── ascii_particle_system/ # ASCII Particle System project
│ │ ├── particles.c
│ │ └── Makefile
- A C/C++ compiler (e.g., GCC or Clang)
- A terminal that supports ANSI escape codes
- (Optional for GUI upgrades) Libraries such as SDL2, SFML, or ncurses
-
Clone the Repository:
git clone https://github.com/Peeyush-04/C_CPP_Animations.git cd C_CPP_Animations -
Compile a Project: For example, to compile the "Loading with Percentage" animation:
cd src/loading_percentage make -
Run the Animation:
./bin/loading # Adjust the executable name if needed
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature/YourFeature
- Commit your changes with clear messages.
- Push the branch:
git push origin feature/YourFeature
- Open a pull request with a description of your changes.
This project is licensed under the MIT License – see the LICENSE file for details.