Documentation
¶
Index ¶
- func SelectColors(colors []color.Hct, k int) []color.Hct
- type Base16
- func (b *Base16) SetBlack(c color.Hct)
- func (b *Base16) SetBlue(c color.Hct)
- func (b *Base16) SetCyan(c color.Hct)
- func (b *Base16) SetGreen(c color.Hct)
- func (b *Base16) SetMagenta(c color.Hct)
- func (b *Base16) SetRed(c color.Hct)
- func (b *Base16) SetWhite(c color.Hct)
- func (b *Base16) SetYellow(c color.Hct)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Base16 ¶
type Base16 struct {
Black, BrightBlack color.ARGB
Red, BrightRed color.ARGB
Green, BrightGreen color.ARGB
Yellow, BrightYellow color.ARGB
Blue, BrightBlue color.ARGB
Magenta, BrightMagenta color.ARGB
Cyan, BrightCyan color.ARGB
White, BrightWhite color.ARGB
// contains filtered or unexported fields
}
Base16 is the generated output.
func GenerateDynamic ¶
GenerateDynamic generates base16 colors from selecting quantizes color. It takes color with long chroma distance to ensure colors has more variety.
func GenerateStatic ¶
GenerateStatic generates base16 colors from pre-defined colors.
func (*Base16) SetMagenta ¶
SetMagenta sets the Magenta and Bright Magenta color.
Click to show internal directories.
Click to hide internal directories.