I rewrote in Rust the popular spinning donut code originally created in C. Just run the application with this command on your terminal console:
cargo run
and a donut will start spinning!
If you don't have Cargo installed, run this command on your terminal if you start from the project root:
./src/main
or just:
./main
if you are inside the spinning-donut/src folder.
Reference/explanation: https://www.a1k0n.net/2011/07/20/donut-math.html or read the .pdf file inside the documentation folder of this project (it's the same page).
Credit: https://github.com/a1k0n.