donut

command module
v0.0.0-...-d5d32c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2021 License: MIT Imports: 7 Imported by: 0

README

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?

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL