Back to

Package spritetools

Latest Go to latest

The highest tagged major version is .

Published: Oct 2, 2019 | License: MIT | Module:


Package spritetools provides functions to manipulate ebiten images.


func GetSprite

func GetSprite(
	width, height int,
	xoffset, yoffset int,
	src *ebiten.Image,
) (*ebiten.Image, error)

GetSprite returns a new image from source, of size width x height. Starting point of image is specified by the xoffset & yoffset.

func ScaleSprite

func ScaleSprite(src *ebiten.Image, x, y float64) (*ebiten.Image, error)

ScaleSprite returns a new image from source, scaled by the given x & y.

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier