Skip to content
A small library of color tools for creating shades of a color family.
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
examples
.gitignore
CONTRIBUTING.md
LICENSE
README.md
go.mod
go.sum
sample.png
shades.go
shades_doc_test.go
shades_test.go

README.md

Shades

This is a minimal golang package and app for generating random colors.

Usage

shade, err := shades.NewFamily("RED")
if err != nil {
    log.Fatalf("could not get color family: %v", err)
}
color := shade.Random(1)

fmt.Printf("color: %s\n", color) // #e58677

If you run the sample web app you get a minimal random list of colors.

Colors Screenshot

"This is not an official Google Project."

You can’t perform that action at this time.