README ¶ colornameconv Go module to convert color definitions to corresponding names Expand ▾ Collapse ▴ Documentation ¶ Index ¶ func HexToHSL(color string) (int, int, int) func New(hex string) (string, error) type Color type Colors Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func HexToHSL ¶ added in v0.1.4 func HexToHSL(color string) (int, int, int) func New ¶ func New(hex string) (string, error) Types ¶ type Color ¶ type Color struct { Hex string `json:"hex"` Name string `json:"name"` R int `json:"r"` G int `json:"g"` B int `json:"b"` H int `json:"h"` S int `json:"s"` L int `json:"l"` } type Colors ¶ type Colors struct { Colors []Color `json:"colors"` } Source Files ¶ View all Source files colorconv.gocolornameconv.go Click to show internal directories. Click to hide internal directories.