Documentation ¶
Index ¶
- Variables
- func MircColor(n int) (color.Color, error)
- func PaletteBg(a *ASCII)
- func PaletteFg(a *ASCII)
- func Rasterize(a *ASCII) (*image.RGBA, error)
- type ASCII
- func (a *ASCII) AnsiBytes() []byte
- func (a *ASCII) Box(r image.Rectangle, c Cell)
- func (a *ASCII) Bytes() []byte
- func (a *ASCII) ClearText()
- func (a *ASCII) Clip(r image.Rectangle)
- func (a *ASCII) Colors() (ret []ColorExtent)
- func (a *ASCII) Columns() (w int)
- func (a *ASCII) Copy() *ASCII
- func (a *ASCII) Flip()
- func (a *ASCII) Get(x, y int) *Cell
- func (a *ASCII) MergePut(c Cell, x, y int)
- func (a *ASCII) Mirror()
- func (a *ASCII) Paste(aa *ASCII, pt image.Point)
- func (a *ASCII) Put(c Cell, x, y int) *Cell
- func (a *ASCII) PutString(s string, x, y int)
- func (a *ASCII) PutTrimASCII(aa *ASCII, pt image.Point)
- func (a *ASCII) Rectangle() image.Rectangle
- func (a *ASCII) Rotate(degrees int)
- func (a *ASCII) Rows() int
- func (a *ASCII) Scale(x, y int)
- func (a *ASCII) Text() string
- type Cell
- type CharAttr
- type ColorExtent
- type ColorPair
- type Palette
- type Transform
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCharAttr = CharAttr{}
View Source
var DefaultColorPair = ColorPair{nil, nil}
View Source
var ErrBadCellCoord = errors.New("out of range")
View Source
var ErrBadMircCode = errors.New("bad mirc code")
Functions ¶
Types ¶
type ASCII ¶
type ASCII struct { // Cells is indexed via [y][x]. Cells [][]Cell }
func (*ASCII) Colors ¶
func (a *ASCII) Colors() (ret []ColorExtent)
func (*ASCII) PutTrimASCII ¶
PutTrimASCII puts with transparent spaces up to the first non-space on a row, then uses all overwriting spaces.
type Palette ¶
func NewPaletteMIRC ¶
func NewPaletteMIRC() *Palette
Click to show internal directories.
Click to hide internal directories.