Donut-shaped C code that generates a 3D spinning donut

9.2M views · 6 years ago · explainer · intermediate · evergreen

A video on the famous donut-shaped C program that prints a spinning 3D donut in ASCII characters. It shows the code and the rotation and projection math behind it.

HN people treat the C donut as a classic piece of programmer art, and bring it up in threads about ASCII graphics.

“Never forget the C donut”

4 comments from Hacker News

C
@ColinWright2021 · in “Donut-shaped C code that generates a 3D spinning donut”
Submitted the video to Hacker News.
RecommendsView on HN
d
@de_nied2021 · in “ASCII Video Player”
Never forget the C donut ▶ this video link
RecommendsView on HN
o
@ofou2021 · in “Donut-shaped C code that generates a 3D spinning donut”
Submitted the video to Hacker News.
RecommendsView on HN
e
@emsign2020 · in “Donut-shaped C code that generates a 3D spinning donut”
Submitted the video to Hacker News.
RecommendsView on HN