Versions in this module Expand all Collapse all v1 v1.3.1 Dec 27, 2019 Changes in this version + const BlockSizeX + const BlockSizeY + const DitheringWithBlocks + const DitheringWithChars + const NoDithering + const ScaleModeFill + const ScaleModeFit + const ScaleModeResize + var ErrHeightNonMoT = errors.New("ANSImage: height must be a Multiple of Two value") + var ErrImageDownloadFailed = errors.New("ANSImage: image download failed") + var ErrInvalidBoundsMoT = errors.New("ANSImage: height or width must be >=2") + var ErrOutOfBounds = errors.New("ANSImage: out of bounds") + func ClearTerminal() + type ANSImage struct + func New(h, w int, bg color.Color, dm DitheringMode) (*ANSImage, error) + func NewFromFile(name string, bg color.Color, dm DitheringMode) (*ANSImage, error) + func NewFromImage(image image.Image, bg color.Color, dm DitheringMode) (*ANSImage, error) + func NewFromReader(reader io.Reader, bg color.Color, dm DitheringMode) (*ANSImage, error) + func NewFromURL(url string, bg color.Color, dm DitheringMode) (*ANSImage, error) + func NewScaledFromFile(name string, y, x int, bg color.Color, sm ScaleMode, dm DitheringMode) (*ANSImage, error) + func NewScaledFromImage(image image.Image, y, x int, bg color.Color, sm ScaleMode, dm DitheringMode) (*ANSImage, error) + func NewScaledFromReader(reader io.Reader, y, x int, bg color.Color, sm ScaleMode, dm DitheringMode) (*ANSImage, error) + func NewScaledFromURL(url string, y, x int, bg color.Color, sm ScaleMode, dm DitheringMode) (*ANSImage, error) + func (ai *ANSImage) DitheringMode() DitheringMode + func (ai *ANSImage) Draw() + func (ai *ANSImage) DrawExt(renderGoCode, disableBgColor bool) + func (ai *ANSImage) GetAt(y, x int) (*ANSIpixel, error) + func (ai *ANSImage) GetMaxProcs() int + func (ai *ANSImage) Height() int + func (ai *ANSImage) Render() string + func (ai *ANSImage) RenderExt(renderGoCode, disableBgColor bool) string + func (ai *ANSImage) SetAt(y, x int, r, g, b, brightness uint8) error + func (ai *ANSImage) SetMaxProcs(max int) + func (ai *ANSImage) Width() int + type ANSIpixel struct + B uint8 + Brightness uint8 + G uint8 + R uint8 + func (ap *ANSIpixel) Render() string + func (ap *ANSIpixel) RenderExt(renderGoCode, disableBgColor bool) string + type DitheringMode uint8 + type ScaleMode uint8