imgutil

package
v0.0.0-...-1d919a4 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	QuakePalette color.Palette
	RottPalette  color.Palette
)

Functions

func AlignImageDimensions

func AlignImageDimensions(img *image.RGBA, alignment int) *image.RGBA

resize image to assure the dimensions are a factor of `alignment` drawing is preserved in the lower right of the image (dimensions are "stretched" on the left and top bounds)

func BuildPalette

func BuildPalette(data []byte, transparencyIdx int) color.Palette

func GetPalette

func GetPalette(gameName string) *color.Palette

func TranslateRottPalettedImageToQuake

func TranslateRottPalettedImageToQuake(img *image.Paletted)

translates the pixels from a paletted image based on ROTT's palette over to the Quake palette

Types

This section is empty.

Jump to

Keyboard shortcuts

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