Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidLength = errors.New("invalid length")
Functions ¶
Types ¶
type Hex ¶
Hex is a helper struct that wraps a color and satisfies encoding.TextMarshaler, encoding.TextUnmarshaler, and fmt.Stringer.
func (*Hex) MarshalText ¶
MarshalText encodes a color as hex.
func (*Hex) UnmarshalText ¶
UnmarshalText parses the given hex code.
Click to show internal directories.
Click to hide internal directories.