Back to godoc.org

Package spritetools

v0.0.0-...-bab7800
Latest Go to latest

The highest tagged major version is .

Published: Oct 2, 2019 | License: MIT | Module: github.com/skatiyar/pacman

Overview

Package spritetools provides functions to manipulate ebiten images.

Index

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