screen

package
v0.0.0-...-ad86b82 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScrRawToImg

func ScrRawToImg(d []byte, mode uint8, p color.Palette) (*image.NRGBA, error)

scrRawToImg will convert the classical OCP screen slice of bytes into image.NRGBA structure using the mode and the palette as arguments

func ScrToImg

func ScrToImg(scrPath string, mode uint8, p color.Palette) (*image.NRGBA, error)

SrcToImg load the amstrad classical 17ko screen image to image.NRBGA using the mode and palette as arguments

func ScrToPng

func ScrToPng(scrPath string, output string, mode uint8, p color.Palette) error

func ToMode0

func ToMode0(in *image.NRGBA, p color.Palette, cfg *config.MartineConfig) []byte

func ToMode1

func ToMode1(in *image.NRGBA, p color.Palette, cfg *config.MartineConfig) []byte

nolint: funlen

func ToMode2

func ToMode2(in *image.NRGBA, p color.Palette, cfg *config.MartineConfig) []byte

nolint: funlen, gocognit

func WinToImg

func WinToImg(path string, mode uint8, p color.Palette) (*image.NRGBA, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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