ocpartstudio

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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicLoader

func BasicLoader(filePath string, p color.Palette, cfg *config.MartineConfig) error

func BasicLoaderCPCPlus

func BasicLoaderCPCPlus(filePath string, p color.Palette, mode uint8, cfg *config.MartineConfig) error

nolint: funlen

func DepackOCP

func DepackOCP(buf []byte) ([]byte, error)

func EgxLoader

func EgxLoader(filePath string, p color.Palette, mode1, mode2 uint8, cfg *config.MartineConfig) error

nolint: funlen, gocognit

func FlashLoader

func FlashLoader(screenFilename1, screenFilename2 string, p1, p2 color.Palette, m1, m2 uint8, cfg *config.MartineConfig) error

nolint: funlen

func Loader

func Loader(filePath string, p color.Palette, mode uint8, cfg *config.MartineConfig) error

func Pal

func Pal(filePath string, p color.Palette, screenMode uint8, dontImportDsk bool, cfg *config.MartineConfig) error

func PalInformation

func PalInformation(filePath string)

func RawScr

func RawScr(filePath string) ([]byte, error)

func SavePal

func SavePal(filePath string, p color.Palette, screenMode uint8, noAmsdosHeader bool) error

func Scr

func Scr(filePath string, data []byte, p color.Palette, screenMode uint8, cfg *config.MartineConfig) error

Types

type OcpPalette

type OcpPalette struct {
	ScreenMode          uint8
	ColorAnimation      uint8
	ColorAnimationDelay uint8
	PaletteColors       [16][12]uint8
	BorderColor         [12]uint8
	Excluded            [16]uint8
	Protected           [16]uint8
}

func OpenPal

func OpenPal(filePath string) (color.Palette, *OcpPalette, error)

func (*OcpPalette) ToString

func (o *OcpPalette) ToString() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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