Categorygithub.com/ganners/ascii-art-values
modulepackage
0.0.0-20160711101340-9b3a37868057
Repository: https://github.com/ganners/ascii-art-values.git
Documentation: pkg.go.dev

# README

ASCII Art - Values

When drawing ASCII art, each character can be treated as a pixel. It will have a particular value which determines it's brightness and so on (at least when programatically drawing an ASCII image).

This will determine the values of a large number of pixels, and will generate a table from value (0 -> 255) to a rune value which can be printed on-screen.

To try out the examples, simply go run example/*.go with whichever file you please. The image-to-ascii.go demonstrates a practical use.

# Packages

No description provided by the author

# Functions

Generates a 2D square of runes.
Fills in the missing values as well as scaling to the full range of value.
Look at all of the pixels in the image and place their respective rune which created that value into the return at that value.
Using a table of runes, builds an image matching that definition.
Given a filepath to a font file (expecting a .ttf) will return the font.Font interface, or an error.