Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // NoColor represents a transparent color. NoColor = Color{} // EmptyColors represents a transparent Colors. EmptyColors = Colors{} )
Functions ¶
This section is empty.
Types ¶
type Attribute ¶
type Attribute int
Attribute attributes text attributes, such as "bold" and "italic".
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
Color represents an index color, or a RGB888 color.
func NewIndexColor ¶
NewIndexColor creates a new indexed color [0-7].
type Colors ¶
type Colors struct {
// contains filtered or unexported fields
}
Colors is Attribute + a foreground color + a background color.
func FromString ¶
FromString parses a string into a Colors.
func (*Colors) Attributes ¶
Attributes return the attributes of a Colors.
func (*Colors) UnmarshalText ¶
FromString parses a []byte into a Colors.
Click to show internal directories.
Click to hide internal directories.