stripe

package
v0.0.0-...-b27a102 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 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 RandomStripeGenerator

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

func NewRandomStripeGenerator

func NewRandomStripeGenerator(palette []colorful.Color) *RandomStripeGenerator

func NewRandomStripeGeneratorVariableSaturation

func NewRandomStripeGeneratorVariableSaturation(minSaturation float64, maxSaturation float64) *RandomStripeGenerator

func (*RandomStripeGenerator) CreateStripe

func (g *RandomStripeGenerator) CreateStripe() Stripe

type Stripe

type Stripe struct {
	Colour colorful.Color
	Length int32
}

type StripeGenerator

type StripeGenerator interface {
	CreateStripe() Stripe
}

Jump to

Keyboard shortcuts

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