Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
DefaultPalette is the default black and white color palette.
View Source
var ErrInvalidSize = errors.New("size must be a multiple of 8")
ErrInvalidSize is an error caused by specifying a size which is not a multiple of 8.
Functions ¶
func Generate ¶
Generate returns an 8x8 grid of values based on the provided source text, optionally mirrored along the X or Y axis.
func GenerateImage ¶
GenerateImage returns an image for the specified grid.
Types ¶
type Palette ¶
Palette represents a pair of colors to use in image generation.
func GeneratePalette ¶
GeneratePalette generates a color palette from a string.
Click to show internal directories.
Click to hide internal directories.