component

package
v0.0.0-...-f4fbe18 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2023 License: CC0-1.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Accel

type Accel struct {
	O, P float64
	Init func() Accel
}

func NewAccel

func NewAccel(speedMin, speedMax, directionMin, directionMax float64) Accel

type Angle

type Angle struct {
	Deg  int
	Init func() Angle
}

func NewAngle

func NewAngle(min, max int) Angle

type Birthrate

type Birthrate struct {
	Amount int
	Ticker *time.Ticker
}

func NewBirthrate

func NewBirthrate(particles int, each time.Duration) Birthrate

func NewZeroBirthrate

func NewZeroBirthrate() Birthrate

type Gradient

type Gradient struct {
	Colors []color.Color
	Init   func() Gradient
}

func NewGradient

func NewGradient(colors ...color.Color) Gradient

type Growth

type Growth struct {
	Speed float64
	Init  func() Growth
}

func NewGrowth

func NewGrowth(min, max float64) Growth

type Life

type Life struct {
	Current, Total int
	Init           func() Life
}

func NewLife

func NewLife(currentMin, currentMax, totalMin, totalMax int) Life

type Pivot

type Pivot struct {
	X, Y float64
}

func NewPivot

func NewPivot(x, y float64) Pivot

type Pos

type Pos struct {
	X, Y float64
	Init func() Pos
}

func NewPos

func NewPos(xMin, xMax, yMin, yMax float64) Pos

type Root

type Root struct {
	Enabled bool
}

func NewNonRoot

func NewNonRoot() Root

func NewRoot

func NewRoot() Root

type Scale

type Scale struct {
	W, H float64
	Init func() Scale
}

func NewScale

func NewScale(min, max float64) Scale

type Spin

type Spin struct {
	Speed int
	Init  func() Spin
}

func NewSpin

func NewSpin(min, max int) Spin

type Sprite

type Sprite struct {
	Image *ebiten.Image
	Init  func() Sprite
}

func NewSprite

func NewSprite(images ...*ebiten.Image) Sprite

type Vel

type Vel struct {
	L, M float64
	Init func() Vel
}

func NewVel

func NewVel(speedMin, speedMax, directionMin, directionMax float64) Vel

Jump to

Keyboard shortcuts

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