Documentation ¶
Index ¶
- func DistinctMix() (int, int, int)
- func HSL2RGB(h, s, l float64) (int, int, int)
- func HexToRGB(hex string) (int, int, int)
- func HexToRGBA(hex string, alpha int) string
- func Hue(p, q, t float64) float64
- func IsHSL(c string) bool
- func IsHex(c string) bool
- func IsRGB(c string) bool
- func IsRGBA(c string) bool
- func IsRGBFormat(c string) bool
- func ParseHSL(hslData string) (float64, float64, float64)
- func ParseRGB(rgbData string) (int, int, int, float64)
- func PastelMix(r, g, b int64) (int64, int64, int64)
- func RGBToHSL(r, g, b int) (float64, float64, float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistinctMix ¶
DistinctMix returns a distinct color value based on using rainbow non-overlapping values which can easily be used for distinct items where color is important.
func HexToRGB ¶
HexToRGB turns a hexademicmal color into rgba format. Returns the read, green and blue values as int.
func HexToRGBA ¶
HexToRGBA turns a hexademicmal color into rgba format. Alpha values ranges from 0-100
func IsRGBFormat ¶
IsRGBFormat returns true/false if the giving string is a rgb/rgba format data.
func ParseHSL ¶
ParseHSL pulls out the rgb/rgba information from a hsl color format from the provided string.
func ParseRGB ¶
ParseRGB pulls out the rgb/rgba information from a rgba(9,9,9,9) type formatted string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.