Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultASCIIPalette = "@%#*+=-:. "
DefaultASCIIPalette contains the default palette used for the ascii encoding
Source from http://paulbourke.net/dataformats/asciiart/
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image converts images to pseudo greyscale text reprosentation
func NewImage ¶
func NewImage() *Image
NewImage creates new ASCII image encoder using the default palette
func NewImageCustomPalette ¶
NewImageCustomPalette creates new ASCII image encoder using custom palette
func (Image) GetFontRatio ¶
GetFontRatio returns the font ratio
Click to show internal directories.
Click to hide internal directories.