How alooistasty/rotating-donut works
This is a small standalone C++ terminal animation: the program samples a torus, transforms and projects its points, resolves visible lit characters into a frame, and repeatedly prints frames while advancing rotation angles. The implementation is inline in main.cpp rather than divided into runtime modules; the nodes describe its meaningful stages, not separate classes. Relationships are supported by the README workflow and the main.cpp excerpt.
Main entry points: main.cpp Frame loop
Components 7
Other components
- Terminal user
- Frame loop
main.cpp - Torus sampling
main.cpp - Rotation and projection
main.cpp - Depth and lighting
main.cpp - ASCII frame
main.cpp - Terminal output
main.cpp
Connections 7
- Terminal user → Frame loop: runs
README.md - Frame loop → Torus sampling: samples points
main.cpp - Frame loop → Rotation and projection: transforms and projects
main.cpp - Frame loop → Depth and lighting: tests depth and lights
main.cpp - Frame loop → ASCII frame: writes characters
main.cpp - Frame loop → Terminal output: prints frame
main.cpp - Frame loop → Frame loop: advances angles
main.cpp