Documentation ¶
Overview ¶
Package fader implements sway container fading.
Index ¶
- Constants
- type Builder
- func (build Builder) Build() *Fader
- func (build Builder) WithContainerAppIDFade(r *regexp.Regexp, from, to float64) Builder
- func (build Builder) WithContainerClassFade(r *regexp.Regexp, from, to float64) Builder
- func (build Builder) WithFPS(fps float64) Builder
- func (build Builder) WithFadeDuration(d time.Duration) Builder
- type Fader
Constants ¶
View Source
const ( DefaultFrom = 0.7 DefaultTo = 1.0 DefaultFPS = 60.0 DefaultDuration = 200 * time.Millisecond DefaultEase = "linear" // camelCase function name from https://github.com/fogleman/ease )
Fader constants.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder func(*options)
Builder builds a fader.
func (Builder) WithContainerAppIDFade ¶
WithContainerAppIDFade configures a container's opacities by app_id.
func (Builder) WithContainerClassFade ¶
WithContainerClassFade configures a container's opacities by class.
Click to show internal directories.
Click to hide internal directories.