Documentation ¶
Index ¶
- func ExportSprite(data []byte, lineSize int, p color.Palette, size constants.Size, mode uint8, ...) error
- func RawSpriteToImg(data []byte, height, width, mode uint8, p color.Palette) *image.NRGBA
- func SpriteToImg(winPath string, mode uint8, p color.Palette) (*image.NRGBA, constants.Size, error)
- func SpriteToPng(winPath string, output string, mode uint8, p color.Palette) error
- func ToImg(d [][]byte, p color.Palette) *image.NRGBA
- func ToSprite(in *image.NRGBA, p color.Palette, size constants.Size, mode uint8, ...) (data []byte, firmwareColorUsed map[int]int, lineSize int, err error)
- func ToSpriteAndExport(in *image.NRGBA, p color.Palette, size constants.Size, mode uint8, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportSprite ¶
func RawSpriteToImg ¶
nolint:funlen
func SpriteToImg ¶
spriteToImg load a OCP win filepath to image.NRGBA using the mode and palette as arguments nolint: funlen
func SpriteToPng ¶
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.