Skip to content

hansrodtang/randomcolor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RandomColor.go

Documentation

Random color generator for Go based on David Merfields randomColor.js

rand.Seed(time.Now().UnixNano()) // Seed the random number generator
color := randomcolor.New(randomcolor.Purple, randomcolor.LIGHT) // Generate a random light purple color

It is, as the original source, licensed under CC0 1.0 Universal.

A fallback of BSD-2 is also available if use of CC0 is not possible.

About

Random color generator for Go.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages