Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidromanovizc/ascii-donut
🍩 ASCII donut in different programming languages
https://github.com/davidromanovizc/ascii-donut
cpp csharp dart donut fortran kotlin math python
Last synced: about 1 month ago
JSON representation
🍩 ASCII donut in different programming languages
- Host: GitHub
- URL: https://github.com/davidromanovizc/ascii-donut
- Owner: DavidRomanovizc
- Created: 2021-01-28T19:07:03.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-13T21:42:18.000Z (about 3 years ago)
- Last Synced: 2024-11-08T05:44:11.552Z (3 months ago)
- Topics: cpp, csharp, dart, donut, fortran, kotlin, math, python
- Language: Python
- Homepage:
- Size: 253 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How it works
- Create a circle of Radius R1 centred at R2
- Create a donut by rotating about the Y axis
- Spin the donut around the X and Z axes
- Pject donut onto 2D screen
- Determine illumination by calculationg surface normal (givel a light source)the idea is taken from here
https://www.a1k0n.net/2011/07/20/donut-math.html