Skip to content
/ donut Public

Rendering a donut in the terminal using Go and some math

License

Notifications You must be signed in to change notification settings

Samyak2/donut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

donut

Rendering a donut in the terminal using Go and some math.

Idea, math and code stolen from this excellent article

looping GIF of the result

^ this was recorded with a terminal size of 120x240. On a saner terminal, this will look much more pixelated.

Why?

  • fun

Improvements

Some improvements from the original in the article:

Usage

  • Clone this repo and cd into it
  • go run .
  • Change some of the configuration (in donut.go) and play with it
  • Look at it go!

TODO

  • expose configurable parameters as command-line flags
  • other shapes?

About

Rendering a donut in the terminal using Go and some math

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages