Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoImagesFound = errors.New("no images found")
ErrNoImagesFound is returned when no images are found in the given path.
Functions ¶
Types ¶
type Config ¶
type Config struct { Workers int Blend bool Scale float64 TileWidth int TileHeight int // ResizeTiles indicates whether the tile images should be resized before // determining their primary color. ResizeTiles bool }
Config contains options for mosaic generation.
type Index ¶ added in v0.9.1
type Index struct {
// contains filtered or unexported fields
}
Index is a list of images that can be accessed by color.
func (*Index) FindNearest ¶ added in v0.9.1
FindNearest returns the nearest color and the images associated with it.
Click to show internal directories.
Click to hide internal directories.