Skip to content

GiorgioMegrelli/Donuts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Rotating Donuts

I have found an interesting video on Youtube:

https://www.youtube.com/watch?v=sW9npZVpiMI

There was an Article related to rotating a Donut:

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

This followed me to the coolest code:

Donut Code

And I just copied it and translated to other programming languages

And WATCH this gif (I have run it on Node.js):

Donut Animation

Technical Side:

Language Version
gcc (C Compiler) 9.2.0
java 1.8.0
Node.js 14.16.0
Python 3.9.1

Run Code

Example: Compile the file donut.c with gcc

gcc donut.c

or

gcc donut.c -lm

and run the executable
or
Compile the Donut.java with javac

javac Donut.java

and run the .class file
or
Run for the Node.js

node donut.js

or
Run for Python

python donut.py

Releases

No releases published

Packages

 
 
 

Contributors