colornameconv

package module
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 11 Imported by: 0

README

colornameconv

Go module to convert color definitions to corresponding names

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

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