spritesheet

package
v0.0.0-...-0118717 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InputImage

type InputImage struct {
	Image  image.Image
	Anchor imaging.Anchor
}

type SpriteSheetCSS

type SpriteSheetCSS struct {
	Size      string   `json:"size"`
	Positions []string `json:"positions"`
}

func Generate

func Generate(
	imageWidth int, imageHeight int, imagePadding int,
	sheetWidth int, sheetHeight int,
	images []InputImage,
) (image.Image, SpriteSheetCSS, error)

func GenerateFromURLs

func GenerateFromURLs(
	imageWidth int, imageHeight int, imagePadding int,
	sheetWidth int, sheetHeight int,
	urlsOrPaths []string,
) (image.Image, SpriteSheetCSS, error)

func GenerateFromURLsGuessHeight

func GenerateFromURLsGuessHeight(
	imageWidth int, imageHeight int, imagePadding int,
	sheetWidth int, urlsOrPaths []string,
) (image.Image, SpriteSheetCSS, error)

Source Files

  • spritesheet.go

Jump to

Keyboard shortcuts

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