Skip to content

TomC333/DonutC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

3D Spinning Donut in C 🌀

Build Status License

Background 🤯

When I was browsing random videos on YouTube, I stumbled upon a 5-second video featuring a donut spinning, created entirely from characters in the terminal. Inspired by this, I decided to create my own version. It took me a year to start working on it, but eventually, I gave it a shot! 😅

Useful Info 💡

During my journey, this article was incredibly helpful: Donut Math by A1k0n

After reading it and applying my little knowledge of linear algebra, I managed to code the donut in just a few hours. Sure, I probably made a few mistakes along the way, but the donut was spinning, so I considered it good enough to show my family. 😄 Unsurprisingly, their faces were a bit... unclear. But hey, at least I got to flex this project to my friends! 😎

Setup 🌱

The setup is as simple as it gets!

  1. Open your terminal/command prompt and Use the cd command to navigate to the directory where you cloned the DonutC repository.
  2. Compile the code: gcc spinning_donut.c -lm
  3. Run the executable: ./a.exe

Demo 🚀

Demo

Releases

No releases published

Packages

No packages published

Languages