Documentation ¶
Index ¶
Constants ¶
View Source
const EmptyPixel = " "
Variables ¶
View Source
var ColoredRuneModel = color.ModelFunc(colorRuneModel)
ColoredRuneModel is needed to construct images.
Functions ¶
Types ¶
type Charpix ¶
type Charpix struct { Pix []ColoredRune Stride int Rect image.Rectangle }
Charpix is an Image with the ColoredRuneModel.
func (*Charpix) ColorModel ¶
ColorModel returns the model for the Charpix, which is always ColoredRuneModel.
func (*Charpix) PixOffset ¶
PixOffset returns the index of the first element of Pix that corresponds to the pixel at (x, y).
type ColoredRune ¶
type ColoredRune struct {
// contains filtered or unexported fields
}
ColoredRune represents a string of characters with a 24bit true-color foreground and background.
func (ColoredRune) RGBA ¶
func (c ColoredRune) RGBA() (r, g, b, a uint32)
RGBA converts a ColoredRune to an RGBA color.
Click to show internal directories.
Click to hide internal directories.