Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.02 KB

README.md

File metadata and controls

32 lines (20 loc) · 1.02 KB

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?