colorpicker

package
v0.0.0-...-05e7d12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorPicker

type ColorPicker struct {
	// contains filtered or unexported fields
}

ColorPicker allows you to assign a unique random color to an id.

func New

func New() *ColorPicker

New creates a new ColorPicker.

func (*ColorPicker) Pick

func (cp *ColorPicker) Pick(id string) *color.Color

Pick picks a color for the id, generating a new random color if necessary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL