Documentation
¶
Index ¶
- Variables
- func GetPixelsFromImage(img image.Image) []color.ARGB
- type Colors
- func GenerateFromImage(ctx context.Context, img image.Image, cfg Config) (Colors, []color.ARGB, error)
- func GenerateFromPixels(ctx context.Context, pixels []color.ARGB, cfg Config) (Colors, []color.ARGB, error)
- func GenerateFromQuantized(quantized Quantized, cfg Config) (Colors, []color.ARGB, error)
- type Config
- type Quantized
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoColorFound = errors.New("no color found")
ErrNoColorFound is a error
View Source
var GeneratorFlags = pflag.NewFlagSet("generate", pflag.ContinueOnError)
GeneratorFlags are the flags used for generating colors
Functions ¶
Types ¶
type Colors ¶
Colors is key and color
func GenerateFromImage ¶
func GenerateFromImage( ctx context.Context, img image.Image, cfg Config, ) (Colors, []color.ARGB, error)
GenerateFromImage colors from an image.Image
Click to show internal directories.
Click to hide internal directories.