Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColorPalette ¶
type ColorPalette int
ColorPalette is the color palette used for the output
const ( // Palette256 is 256 colors ANSI palette Palette256 ColorPalette = iota // PaletteTrueColor is True Color ANSI palette PaletteTrueColor )
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image converts images to colored ANSI terminal text representations
func NewImage ¶
func NewImage(p ColorPalette, ph PixelHeight) *Image
NewImage creates new Image converter
func (Image) GetFontRatio ¶
GetFontRatio returns the font ratio
type PixelHeight ¶
type PixelHeight int
PixelHeight defines the vertical density fot the output
const ( // SingleHeight uses one row per vertical pixel SingleHeight PixelHeight = iota // HalfHeight uses half row per vertical pixel HalfHeight )
Click to show internal directories.
Click to hide internal directories.