Documentation ¶
Index ¶
- func DrawCursor(screen *ebiten.Image)
- func DrawText(screen *ebiten.Image, str string, position Vector2, face font.Face, ...)
- type Animation
- type Colorshift
- type Transform
- func (t *Transform) Calculate() ebiten.GeoM
- func (t *Transform) Identity()
- func (t *Transform) IdentityWithPosition(position Vector2)
- func (t *Transform) Origin() Vector2
- func (t *Transform) Position() Vector2
- func (t *Transform) Rotation() float64
- func (t *Transform) Scale() Vector2
- func (t *Transform) SetOrigin(origin Vector2)
- func (t *Transform) SetPosition(position Vector2)
- func (t *Transform) SetRotation(rotation float64)
- func (t *Transform) SetScale(scale Vector2)
- func (t *Transform) SetSkew(skew Vector2)
- func (t *Transform) Skew() Vector2
- type Vector2
- func (v Vector2) Add(right Vector2) Vector2
- func (v Vector2) AddF(right float64) Vector2
- func (v Vector2) Distance(to Vector2) float64
- func (v Vector2) DistanceSquared(to Vector2) float64
- func (v Vector2) Dot(right Vector2) float64
- func (v Vector2) Equals(right Vector2) bool
- func (v Vector2) Invert() Vector2
- func (v Vector2) IsNonZero() bool
- func (v Vector2) IsZero() bool
- func (v Vector2) Length() float64
- func (v Vector2) Multiply(right Vector2) Vector2
- func (v Vector2) MultiplyF(right float64) Vector2
- func (v Vector2) Normalized() Vector2
- func (v Vector2) Orthogonal() Vector2
- func (v Vector2) Subtract(right Vector2) Vector2
- func (v Vector2) Unwrap() (float64, float64)
- func (v Vector2) UnwrapInt() (int, int)
- func (v Vector2) VToRadians() float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawCursor ¶
func DrawCursor(screen *ebiten.Image)
Types ¶
type Animation ¶
type Animation struct { Sheet *ebiten.Image TotalFrames int IntervalTicks int OnFinish func() // contains filtered or unexported fields }
func NewAnimation ¶
type Colorshift ¶
type Colorshift struct {
R, G, B, A float64
}
func NewColorshift ¶
func NewColorshift(r, g, b, a float64) Colorshift
type Transform ¶
type Transform struct {
// contains filtered or unexported fields
}
func NewTransform ¶
func NewTransform() Transform
func (*Transform) IdentityWithPosition ¶
func (*Transform) SetPosition ¶
func (*Transform) SetRotation ¶
type Vector2 ¶
type Vector2 struct {
X, Y float64
}
func VFromRadians ¶
func (Vector2) DistanceSquared ¶
func (Vector2) Normalized ¶
func (Vector2) Orthogonal ¶
func (Vector2) VToRadians ¶
Click to show internal directories.
Click to hide internal directories.