Documentation ¶
Index ¶
- type Basic
- func (v *Basic) SelectBender() common.Bender
- func (v *Basic) SelectColor() color.Color
- func (v *Basic) SelectDuration() time.Duration
- func (v *Basic) SelectEffect() common.Effect
- func (v *Basic) SelectPainter() common.Painter
- func (v *Basic) SelectShifterHue() common.Shifter
- func (v *Basic) SelectShifterLightness() common.Shifter
- func (v *Basic) SelectShifterSaturation() common.Shifter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Basic ¶
type Basic struct { common.Seeder // Effects provides options to SelectEffect // Effect spans are not set by the Basic Palette Effects []common.Effect // Painters provides options to SelectBender Painters []common.Painter // Benders provides options to SelectBender Benders []common.Bender // Shifters provides options to SelectShifter Shifters []common.Shifter // Colors provides options to SelectColor Colors []color.Color // Durations provides options to SelectDuration // Should generally range from 0.1s to 10s Durations []time.Duration }
Basic will randomly choose from the possible options provided when the relevant resource is requested from any functions outlined by common.Palette
func (*Basic) SelectBender ¶
SelectBender returns a Bender
func (*Basic) SelectDuration ¶
SelectDuration returns a Duration
func (*Basic) SelectEffect ¶
SelectEffect returns a Effect
func (*Basic) SelectPainter ¶
SelectPainter returns a Painter
func (*Basic) SelectShifterHue ¶
SelectShifterHue returns a Shifter which is aimed to shift hues
func (*Basic) SelectShifterLightness ¶
SelectShifterLightness returns a Shifter which is aimed to shift lightness
func (*Basic) SelectShifterSaturation ¶
SelectShifterSaturation returns a Shifter which is aimed to shift saturation
Click to show internal directories.
Click to hide internal directories.