Versions in this module Expand all Collapse all v1 v1.0.0 Mar 13, 2024 Changes in this version + func DrawLines(target *ebiten.Image, f Font, x, y int, width int, text string, ...) + func DrawText(target *ebiten.Image, f Font, x, y int, text string, clr color.Color, mode int) + func Touching(sp1 *Sprite, pt1 image.Point, sp2 *Sprite, pt2 image.Point) bool + func TouchingColor(sp1 *Sprite, pt1 image.Point, sp2 *Sprite, pt2 image.Point, clr color.RGBA) bool + func TouchingPoint(sp *Sprite, pt image.Point, x, y int) bool + func TouchingRect(sp *Sprite, pt image.Point, x1, y1, x2, y2 int) bool + func TouchingRectangle(sp1 *Sprite, pt1 image.Point, rect2 image.Rectangle) bool + type Canvas struct + Target *ebiten.Image + func Start(target *ebiten.Image) Canvas + func (p Canvas) End() + type Font = font.Face + type Image struct + func NewImageFrom(img image.Image) Image + func NewImageSize(width, height int) Image + func (i Image) Bounds() image.Rectangle + func (i Image) Ebiten() *ebiten.Image + func (i Image) IsValid() bool + func (i Image) Origin() *image.RGBA + func (i Image) Size() (width, height int) + func (i Image) SubImage(rect image.Rectangle) Image + type SVG struct + func NewSVG(cx, cy int) SVG + func (p SVG) ToImage() (image.Image, error) + type Sprite image.RGBA + func NewSprite(screen *ebiten.Image, rect image.Rectangle) *Sprite + func NewSpriteFromRect(x1, y1, x2, y2 int) *Sprite + func NewSpriteFromRectangle(rect image.Rectangle) *Sprite + func NewSpriteFromScreen(screen *ebiten.Image) *Sprite + func (p *Sprite) GetTrackPos() image.Point + func (p *Sprite) Image() *image.RGBA + type TextRender struct + func NewTextRender(face Font, width int, dy int) TextRender + func (p TextRender) Draw(target *ebiten.Image, x, y int, clr color.Color, mode int) + func (p TextRender) Size() (int, int)