Documentation ¶
Index ¶
- type SpriteToDraw
- func (s *SpriteToDraw) Get() turtlemodel.SpriteInfo
- func (s *SpriteToDraw) Set(visible bool, cartX, cartY, radianAngle float64)
- func (s *SpriteToDraw) SetPosition(cartX, cartY float64)
- func (s *SpriteToDraw) SetRotation(radianAngle float64)
- func (s *SpriteToDraw) SetScale(scale float64)
- func (s *SpriteToDraw) SetSpriteImage(in image.Image)
- func (s *SpriteToDraw) SetSpriteImageArrow()
- func (s *SpriteToDraw) SetSpriteImageTurtle()
- func (s *SpriteToDraw) SetVisible(visible bool)
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 ¶
func (s *SpriteToDraw) Get() turtlemodel.SpriteInfo
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)
Click to show internal directories.
Click to hide internal directories.