README ¶
rovergulf/utils/colors
Go package to generate random colors
package main
import (
"github.com/rovergulf/utils/colors"
)
func main() {
var colorInHex string = colors.GetRandomColorInHex()
var colorInRGB colors.RGBColor = colors.GetRandomColorInRgb()
var colorInHSV colors.HSVColor = colors.GetRandomColorInHSV()
}
Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRandomColorInHex ¶
func GetRandomColorInHex() string
GetRandomColorInHex returns a random color in HEX format
Types ¶
type HSVColor ¶
HSVColor HSV Color Type
func GetRandomColorInHSV ¶
func GetRandomColorInHSV() HSVColor
GetRandomColorInHSV returns a random color in HSV format
Click to show internal directories.
Click to hide internal directories.