Samyak2 / donut

Rendering a donut in the terminal using Go and some math

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:Go 100.0%