Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyColor ¶
type KeyColor struct {
// contains filtered or unexported fields
}
KeyColor is a color that represents the hue and chroma of a tonal palette
func NewKeyColor ¶
NewKeyColor creates a new KeyColor with the given hue and chroma
type TonalPalette ¶
type TonalPalette struct {
Hue float64
Chroma float64
KeyColor color.Hct
// contains filtered or unexported fields
}
func FromHueAndChroma ¶
func FromHueAndChroma(hue, chroma float64) *TonalPalette
func NewFromARGB ¶
func NewFromARGB(color color.ARGB) *TonalPalette
func NewFromHct ¶
func NewFromHct(hct color.Hct) *TonalPalette
func (*TonalPalette) IsBlue ¶
func (tp *TonalPalette) IsBlue() bool
IsBlue determines if a hue is in the blue range.
func (*TonalPalette) IsCyan ¶
func (tp *TonalPalette) IsCyan() bool
IsCyan determines if a hue is in the cyan range.
func (*TonalPalette) IsYellow ¶
func (tp *TonalPalette) IsYellow() bool
IsYellow determines if a hue is in the yellow range.
Click to show internal directories.
Click to hide internal directories.