bender

package
v0.0.0-...-c730260 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Combo

type Combo struct {
	A common.Bender
	B common.Bender
}

Combo is a Bender which provides a single unchanging bend

func (Combo) Bend

func (b Combo) Bend(f float64) float64

Bend returns a value representing some change or bend

func (Combo) Copy

func (b Combo) Copy() common.Bender

Copy returns a deep copy of the Bender

func (*Combo) GetStabilizeFuncs

func (b *Combo) GetStabilizeFuncs() []func(p common.Palette)

GetStabilizeFuncs returns StabilizeFunc for all remaining unstablaized traits

func (Combo) String

func (b Combo) String() string

String returns a string representation of the Bender

type Exponential

type Exponential struct {
	Exponent    float64
	Coefficient float64
}

Exponential is a Bender which provides a single unchanging bend

func (Exponential) Bend

func (b Exponential) Bend(f float64) float64

Bend returns a value representing some change or bend

func (Exponential) Copy

func (b Exponential) Copy() common.Bender

Copy returns a deep copy of the Bender

func (*Exponential) GetStabilizeFuncs

func (b *Exponential) GetStabilizeFuncs() []func(p common.Palette)

GetStabilizeFuncs returns StabilizeFunc for all remaining unstablaized traits

func (Exponential) String

func (b Exponential) String() string

String returns a string representation of the Bender

type Linear

type Linear struct {
	Coefficient float64
}

Linear is a Bender which provides a bend which changes linearly

func (Linear) Bend

func (b Linear) Bend(f float64) float64

Bend returns a value representing some change or bend

func (Linear) Copy

func (b Linear) Copy() common.Bender

Copy returns a deep copy of the Bender

func (*Linear) GetStabilizeFuncs

func (b *Linear) GetStabilizeFuncs() []func(p common.Palette)

GetStabilizeFuncs returns StabilizeFunc for all remaining unstablaized traits

func (Linear) String

func (b Linear) String() string

String returns a string representation of the Bender

type Sinusoidal

type Sinusoidal struct {
	Offset    float64
	Period    float64
	Amplitude float64
}

Sinusoidal is a Bender which provides a single unchanging bend

func (Sinusoidal) Bend

func (b Sinusoidal) Bend(f float64) float64

Bend returns a value representing some change or bend

func (Sinusoidal) Copy

func (b Sinusoidal) Copy() common.Bender

Copy returns a deep copy of the Bender

func (*Sinusoidal) GetStabilizeFuncs

func (b *Sinusoidal) GetStabilizeFuncs() []func(p common.Palette)

GetStabilizeFuncs returns StabilizeFunc for all remaining unstablaized traits

func (Sinusoidal) String

func (b Sinusoidal) String() string

String returns a string representation of the Bender

type Static

type Static struct {
	TheBend float64
}

Static is a Bender which provides a single unchanging bend

func (Static) Bend

func (b Static) Bend(_ float64) float64

Bend returns a value representing some change or bend

func (Static) Copy

func (b Static) Copy() common.Bender

Copy returns a deep copy of the Bender

func (*Static) GetStabilizeFuncs

func (b *Static) GetStabilizeFuncs() []func(p common.Palette)

GetStabilizeFuncs returns StabilizeFunc for all remaining unstablaized traits

func (Static) String

func (b Static) String() string

String returns a string representation of the Combo

Jump to

Keyboard shortcuts

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