File: README.md

package info (click to toggle)
golang-github-hansrodtang-randomcolor 0.0~git20160512.d27108b-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 76 kB
  • sloc: makefile: 2
file content (15 lines) | stat: -rw-r--r-- 596 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
RandomColor.go
==============

[![Documentation](http://img.shields.io/badge/documentation-GoDoc-blue.svg?style=flat)](http://godoc.org/github.com/hansrodtang/randomcolor)

Random color generator for Go based on David Merfields [randomColor.js](http://llllll.li/randomColor/)

```go
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.