go get -u github.com/zekroTJA/colorname
colorname
matches a given color to the most similar looking color of the "List of colors" of Wikipedia.
This package is inspired by jcolag/color-namer.
Here you can read the docs of this package, generated by pkg.go.dev.
package main
import (
"fmt"
"github.com/zekroTJA/colorname"
)
func main() {
matches := colornames.FindNum(0x6a0dad)
for _, m := range matches {
fmt.Printf("%+v\n", m)
}
}
Further examples, you can find in the example directory.
Copyright (c) 2020 zekro Development (Ringo Hoffmann).
Covered by MIT licence.