fakes

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpriteToDraw

type SpriteToDraw struct {
	Img          image.Image
	Width        int
	Height       int
	X            float64
	Y            float64
	Angle        float64
	Visible      bool
	Scale        float64
	CurrentImage string
}

func NewSprite

func NewSprite() *SpriteToDraw

func (*SpriteToDraw) Get added in v0.9.0

func (*SpriteToDraw) Set

func (s *SpriteToDraw) Set(visible bool, cartX, cartY, radianAngle float64)

func (*SpriteToDraw) SetPosition

func (s *SpriteToDraw) SetPosition(cartX, cartY float64)

func (*SpriteToDraw) SetRotation

func (s *SpriteToDraw) SetRotation(radianAngle float64)

func (*SpriteToDraw) SetScale

func (s *SpriteToDraw) SetScale(scale float64)

func (*SpriteToDraw) SetSpriteImage

func (s *SpriteToDraw) SetSpriteImage(in image.Image)

func (*SpriteToDraw) SetSpriteImageArrow

func (s *SpriteToDraw) SetSpriteImageArrow()

func (*SpriteToDraw) SetSpriteImageTurtle

func (s *SpriteToDraw) SetSpriteImageTurtle()

func (*SpriteToDraw) SetVisible

func (s *SpriteToDraw) SetVisible(visible bool)

Jump to

Keyboard shortcuts

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