color

package
v0.0.0-...-afbe920 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cluster

func Cluster(input colorful.Color) (string, float64)

Cluster resolves the closest "cluster" or bucket of colors For example, "rose" would map to "red" or "sky blue" would map to "blue" This is useful for generalizing about what basic color a particular hue may be, especially for faceting.

func Find

func Find(name string) (string, error)

func Match

func Match(input colorful.Color) (string, float64)

Match the input against the closest known color

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL