package
Version:
v1.14.4
Opens a new window with list of versions in this module.
Published: Feb 24, 2022
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
func GetRandomColorInHex() string
GetRandomColorInHex returns a random color in HEX format
HSVColor HSV Color Type
GetRandomColorInHSV returns a random color in HSV format
type RGBColor struct {
Red int
Green int
Blue int
}
RGBColor RBG Color Type
GetRandomColorInRgb Returns a random RGBColor
Source Files
¶
Click to show internal directories.
Click to hide internal directories.