bmath

package
v0.0.0-...-491ee29 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DimGlider

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

func NewDimGlider

func NewDimGlider(value float64) *DimGlider

func (*DimGlider) AddEvent

func (glider *DimGlider) AddEvent(startTime, endTime float64, endType EType)

func (*DimGlider) AddEventV

func (glider *DimGlider) AddEventV(startTime, endTime, targetValue float64, endType EType)

func (*DimGlider) GetValue

func (glider *DimGlider) GetValue() float64

func (*DimGlider) Reset

func (glider *DimGlider) Reset()

func (*DimGlider) SetEasing

func (glider *DimGlider) SetEasing(easing func(float64) float64)

func (*DimGlider) Update

func (glider *DimGlider) Update(time, introD, normalD, breakD float64)

type EType

type EType int
const (
	Absolute EType = iota
	Intro
	Normal
	Break
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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