Documentation ¶
Index ¶
- type Clip
- type Image
- func (img *Image) Draw()
- func (img *Image) DrawAt(x, y int)
- func (img *Image) DrawRectAt(rx, ry, rw, rh, x, y int)
- func (img *Image) DrawRectangle(rect image.Rectangle)
- func (img *Image) DrawRectangleAt(rect image.Rectangle, x, y int)
- func (img *Image) Gen()
- func (img *Image) Sprite(w, h int) *Sprite
- type Sequence
- type Sprite
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { image.Image FilePath string W, H int // contains filtered or unexported fields }
func (*Image) DrawRectAt ¶
DrawRectAt draws a portion of the image specified w at the specified position.
func (*Image) DrawRectangle ¶
DrawRectangle is DrawRectangleAt with a zero position.
func (*Image) DrawRectangleAt ¶
DrawRectangleAt draws a portion of the image defined by an image.Rectangle, at the specified position.
type Sequence ¶
type Sequence struct { Sprite *Sprite Speed float64 StartTime, StopTime time.Time From, To, Curr int IsPlaying bool }
func NewSequence ¶
func (*Sequence) DrawFrameAt ¶
type Sprite ¶
func (*Sprite) DrawClipAt ¶
Click to show internal directories.
Click to hide internal directories.