sprite

package
v0.0.0-...-7b37363 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportSprite

func ExportSprite(data []byte, lineSize int, p color.Palette, size constants.Size, mode uint8, filename string, dontImportDsk bool, cfg *config.MartineConfig) error

func RawSpriteToImg

func RawSpriteToImg(data []byte, height, width, mode uint8, p color.Palette) *image.NRGBA

nolint:funlen

func SpriteToImg

func SpriteToImg(winPath string, mode uint8, p color.Palette) (*image.NRGBA, constants.Size, error)

spriteToImg load a OCP win filepath to image.NRGBA using the mode and palette as arguments nolint: funlen

func SpriteToPng

func SpriteToPng(winPath string, output string, mode uint8, p color.Palette) error

spriteToPng will save the sprite OCP win filepath in a png file output will be the png filpath, using the mode and palette as arguments

func ToImg

func ToImg(d [][]byte, p color.Palette) *image.NRGBA

func ToSprite

func ToSprite(in *image.NRGBA,
	p color.Palette,
	size constants.Size,
	mode uint8,
	ex *config.MartineConfig) (data []byte, firmwareColorUsed map[int]int, lineSize int, err error)

nolint:funlen, gocognit

func ToSpriteAndExport

func ToSpriteAndExport(in *image.NRGBA, p color.Palette, size constants.Size, mode uint8, filename string, dontImportDsk bool, ex *config.MartineConfig) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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