Documentation
¶
Index ¶
- func Clamp(value, min, max float64) float64
- func CubicEaseIn(t float64) float64
- func CubicEaseOut(t float64) float64
- func EaseIn(t float64) float64
- func EaseInOut(t float64) float64
- func EaseOut(t float64) float64
- func FindChildrenWithComponent(e *donburi.Entry, c component.IComponentType) []*donburi.Entry
- func FindWithComponent(w donburi.World, componentType component.IComponentType) (*donburi.Entry, bool)
- func IntPercent(value int, percent float64) int
- func Lerp(a, b, t float64) float64
- func LerpVec2(a, b math.Vec2, t float64) math.Vec2
- func MustFindChildWithComponent(parent *donburi.Entry, componentType component.IComponentType) *donburi.Entry
- func MustFindComponent[T any](w donburi.World, c Component[T]) *T
- func MustFindGrandchildWithComponent(parent *donburi.Entry, componentType component.IComponentType) *donburi.Entry
- func MustFindWithComponent(w donburi.World, componentType component.IComponentType) *donburi.Entry
- func MustGetParent(entry *donburi.Entry) *donburi.Entry
- func RandomFloatRange(min, max float64) float64
- func RandomFrom[T comparable](list []T) T
- func RandomFromOrEmpty[T comparable](list []T) *T
- func RandomIntRange(min, max int) int
- type Component
- type DurationRange
- type FloatRange
- type IntRange
- type Rect
- type Size
- type Timer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CubicEaseIn ¶
Cubic ease in - even more pronounced slow start
func CubicEaseOut ¶
Cubic ease out - even more pronounced slow end
func FindWithComponent ¶
func IntPercent ¶
func MustFindWithComponent ¶
func RandomFloatRange ¶
func RandomFrom ¶
func RandomFrom[T comparable](list []T) T
func RandomFromOrEmpty ¶
func RandomFromOrEmpty[T comparable](list []T) *T
func RandomIntRange ¶
Types ¶
type Component ¶
type Component[T any] interface { donburi.IComponentType Get(entry *donburi.Entry) *T }
type DurationRange ¶
func (DurationRange) Random ¶
func (r DurationRange) Random() time.Duration
type FloatRange ¶
func (FloatRange) Random ¶
func (r FloatRange) Random() float64
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
func (*Timer) CurrentFrames ¶
func (*Timer) PercentDone ¶
func (*Timer) TargetFrames ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.