Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColorInversion ¶
ColorInversion inverse a color
Types ¶
type ColorGenerator ¶
type ColorGenerator struct {
// contains filtered or unexported fields
}
ColorGenerator is a color generator
func NewColorGenerator ¶
func NewColorGenerator(seed int, maxColors []color.RGBA64) ColorGenerator
NewColorGenerator create a color generator
func (*ColorGenerator) NextColor ¶
func (g *ColorGenerator) NextColor() color.RGBA64
NextColor returns the next color of the generator
type NumberGenerator ¶
type NumberGenerator struct {
// contains filtered or unexported fields
}
NumberGenerator is a predictable number generator
func NewNumberGenerator ¶
func NewNumberGenerator(seed int, min int, max int) NumberGenerator
NewNumberGenerator creates a new number generator with a specific seed
func (*NumberGenerator) NextPositive ¶
func (n *NumberGenerator) NextPositive() int
NextPositive returns the next positive value of the generator
Click to show internal directories.
Click to hide internal directories.