Versions in this module Expand all Collapse all v1 v1.1.1 Feb 11, 2017 Changes in this version + const ScaleModeFill + const ScaleModeFit + const ScaleModeResize + var ErrInvalidBounds = errors.New("ANSImage: height or width must be >=2") + var ErrOddHeight = errors.New("ANSImage: height must be even value") + var ErrOutOfBounds = errors.New("ANSImage: out of bounds") + func ClearTerminal() + type ANSImage struct + func New(h, w int) (*ANSImage, error) + func NewFromFile(bg color.Color, name string) (*ANSImage, error) + func NewFromReader(bg color.Color, reader io.Reader) (*ANSImage, error) + func NewScaledFromFile(y, x int, sm scaleMode, bg color.Color, name string) (*ANSImage, error) + func NewScaledFromReader(y, x int, sm scaleMode, bg color.Color, reader io.Reader) (*ANSImage, error) + func (ai *ANSImage) Draw() + 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) SetAt(y, x int, r, g, b uint8) error + func (ai *ANSImage) SetMaxProcs(max int) + func (ai *ANSImage) Width() int + type ANSIpixel struct + B uint8 + G uint8 + R uint8 + func (ap *ANSIpixel) Render() string