Documentation ¶
Index ¶
- type Sprite
- func (s Sprite) Copy() Sprite
- func (s Sprite) FlipHorizontally()
- func (s Sprite) FlipVertically()
- func (s Sprite) ID() string
- func (s Sprite) Identical(b Sprite) bool
- func (s Sprite) IdenticalIfFlippedHorizontally(b Sprite) bool
- func (s Sprite) IdenticalIfFlippedVertically(b Sprite) bool
- func (s Sprite) IdenticalIfRotated(b Sprite) bool
- func (s Sprite) Rotate()
- type Sprites
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sprite ¶
func FromImageSection ¶
func (Sprite) Copy ¶
Prevents accidental mutation by copying the sprite into a new sprite. This as values of slices in Go are references.
func (Sprite) FlipHorizontally ¶
func (s Sprite) FlipHorizontally()
func (Sprite) FlipVertically ¶
func (s Sprite) FlipVertically()
func (Sprite) IdenticalIfFlippedHorizontally ¶
func (Sprite) IdenticalIfFlippedVertically ¶
func (Sprite) IdenticalIfRotated ¶
Click to show internal directories.
Click to hide internal directories.