internal

package
v0.0.0-...-5b3fe6d Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BridgedCameraOrigin image.Point
View Source
var BridgedLogicalHeight int
View Source
var BridgedLogicalWidth int
View Source
var CurrentTPU uint64 // ticks per update
View Source
var CurrentZoom float64

Functions

func BestFitFloat

func BestFitFloat(dynamicScale bool, layoutWidth, layoutHeight int, renderWidth float64, renderHeight, contextWidth, contextHeight *float64, allowBelowOne bool) float64

func BestFitInt

func BestFitInt(dynamicScale bool, layoutWidth, layoutHeight int, renderWidth float64, renderHeight, contextWidth, contextHeight *float64) int

func CubicOutInterp

func CubicOutInterp(a, b, t float64) float64

func CubicSmoothstepInterp

func CubicSmoothstepInterp(a, b, t float64) float64

func EaseInQuad

func EaseInQuad(t float64) float64

func EaseOutCubic

func EaseOutCubic(t float64) float64

func EaseOutQuad

func EaseOutQuad(t float64) float64

func FillOver

func FillOver(target *ebiten.Image, fillColor color.Color)

func FillOverRect

func FillOverRect(target *ebiten.Image, bounds image.Rectangle, fillColor color.Color)

func FillOverRectF32

func FillOverRectF32(target *ebiten.Image, minX, minY, maxX, maxY float32, fillColor color.Color)

func GetCurrentZoom

func GetCurrentZoom() float64

func GetResolution

func GetResolution() (int, int)

func GetTPU

func GetTPU() uint64

func GetUPS

func GetUPS() int

func LinearInterp

func LinearInterp(a, b, t float64) float64

func QuadDvInOut

func QuadDvInOut(t float64) float64

func QuadInOut

func QuadInOut(t float64) float64

func QuadInOutInterp

func QuadInOutInterp(a, b, t float64) float64

func RollPointWithinEllipse

func RollPointWithinEllipse(width, height float64) (float64, float64)

func TAt

func TAt(x, a, b float64) float64

Types

type Spring

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

func (*Spring) IsInitialized

func (self *Spring) IsInitialized() bool

func (*Spring) SetParameters

func (self *Spring) SetParameters(damping, frequency float64)

func (*Spring) Update

func (self *Spring) Update(current, target, speed float64) (float64, float64)

Returns the new position and new speed.

type TicksDuration

type TicksDuration uint32

Jump to

Keyboard shortcuts

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