DavidRomanovizc / ASCII-Donut

🍩ASCII donut in different programming languages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

🍩ASCII donut in different programming languages


Languages

Language:Python 15.6%Language:Fortran 13.9%Language:C# 12.8%Language:Kotlin 11.1%Language:Dart 9.5%Language:C++ 7.7%Language:PHP 7.7%Language:Go 7.6%Language:JavaScript 6.8%Language:C 5.4%Language:CMake 2.0%