/3D-Rotating-Donut

The idea of spinning “donuts” and code was originally from Andy Sloane where he was able to code this whole program and see and made the code itself look like a donut

Primary LanguageCMIT LicenseMIT

THE BEAUTIFUL C PROGRAM THAT CREATES A 3D ROTATING DONUT

The Donuts Code

The spinning “donuts” has brought some attention recently and was created by the amazing Andy Sloane. No wonder, a flying donut on your terminal? You can find the code below in c. The “pixels” are ASCII characters .,-~:;=!*#$@ that accounts for the illumination value of the surface, but I'll explain step by step below along with the math.

0_ABgQRoSOxyHksOEo

For More Information : https://www.a1k0n.net/2011/07/20/donut-math.html

You to see the rotating 3D donut on your screen :

  1. Copy the above code into any IDE(Notepad++, Notepad, VS-Code, Sublimetext, Atom, etc)
  2. Save the file by .C
  3. Click the Run button
  4. Or use cmd by this command "gcc donut.c" and then a.exe is created So type "a" and hit enter
  5. Now enjoy it😃.