Documentation
¶
Index ¶
- func DecodeGif(path string) ([]*image.RGBA, []image.Rectangle, error)
- func DecodeStatic(path string) (*image.RGBA, image.Rectangle, error)
- func DecodeWebp(path string) ([]*image.RGBA, []image.Rectangle, error)
- func FormConfigPath(path string) string
- func GetPixels(path string) ([]map[colorful.Color]int, error)
- func GetPixelsFromShot(rgba *image.RGBA, bounds image.Rectangle) map[colorful.Color]int
- func MaxColor(colors []colorful.Color, matches_map map[colorful.Color]int) colorful.Color
- func Merge(all_pixels map[colorful.Color]int, luft float64, need_colors int) map[colorful.Color]int
- func SaveConfig(path string, config Configuration) error
- func SaveJson(path string, config []byte)
- func SortByDistance(all_pixels map[colorful.Color]int) []colorful.Color
- type Cluster
- type Color
- type Configuration
- type EwwConfig
- type HexColor
- type HyprlandConfig
- type SwayncConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormConfigPath ¶
func GetPixelsFromShot ¶
func SaveConfig ¶
func SaveConfig(path string, config Configuration) error
Types ¶
type Configuration ¶
type Configuration struct {
Colors []HexColor `json:"all_colors"`
Hyprland HyprlandConfig `json:"hyprland"`
Eww EwwConfig `json:"eww"`
Swaync SwayncConfig `json:"swaync"`
}
type HyprlandConfig ¶
Click to show internal directories.
Click to hide internal directories.