Documentation ¶
Index ¶
- 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
- type Font
- type Image
- type SVG
- type Sprite
- type TextRender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawLines ¶
func DrawLines(target *ebiten.Image, f Font, x, y int, width int, text string, clr color.Color, mode int)
DrawLines draws multiline text.
func TouchingColor ¶
TouchingColor func.
func TouchingPoint ¶
TouchingPoint func.
func TouchingRect ¶
TouchingRect func.
Types ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
func NewImageFrom ¶
func NewImageSize ¶
type Sprite ¶
Sprite type.
func NewSpriteFromRectangle ¶
NewSpriteFromRectangle func.
func NewSpriteFromScreen ¶
func NewSpriteFromScreen(screen *ebiten.Image) *Sprite
NewSpriteFromScreen func.
type TextRender ¶
TextRender represents a text rendering engine.
func NewTextRender ¶
func NewTextRender(face Font, width int, dy int) TextRender
NewTextRender creates a text rendering engine.
func (TextRender) Draw ¶
func (p TextRender) Draw(target *ebiten.Image, x, y int, clr color.Color, mode int)
Draw draws rendered text.
func (TextRender) Size ¶
func (p TextRender) Size() (int, int)
Size returns width and height of rendered text.
Click to show internal directories.
Click to hide internal directories.