Documentation
¶
Index ¶
- Variables
- type Colors
- func GenerateFromColors(colors []color.Color, variant dynamic.Variant, dark bool, constrast float64, ...) (Colors, error)
- func GenerateFromImage(img image.Image, variant dynamic.Variant, dark bool, constrast float64, ...) (Colors, error)
- func GenerateFromPixels(pixels []color.ARGB, variant dynamic.Variant, dark bool, constrast float64, ...) (Colors, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoColorFound = errors.New("no color found")
ErrNoColorFound indecates no color found in array
Functions ¶
This section is empty.
Types ¶
type Colors ¶
Colors is key and color
func GenerateFromColors ¶
func GenerateFromColors( colors []color.Color, variant dynamic.Variant, dark bool, constrast float64, platform dynamic.Platform, version dynamic.Version, ) (Colors, error)
GenerateFromColors generate theme from a slice of Color interface
Click to show internal directories.
Click to hide internal directories.