spritetools

package
v0.0.0-...-bab7800 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package spritetools provides functions to manipulate ebiten images.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL