colors

package
v0.0.0-...-e95280a Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Create() Builder
	WithRed(red uint8) Builder
	WithGreen(green uint8) Builder
	WithBlue(blue uint8) Builder
	Now() Color
}

Builder represents a color builder

func NewBuilder

func NewBuilder() Builder

NewBuilder creates a new builder instance

type Color

type Color interface {
	Red() uint8
	Green() uint8
	Blue() uint8
}

Color represents a color

Jump to

Keyboard shortcuts

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