mag

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Header struct {
	Colors     int
	StartX     uint16
	StartY     uint16
	EndX       uint16
	EndY       uint16
	FlgAOffset uint32
	FlgASize   uint32
	FlgBOffset uint32
	FlgBSize   uint32
	PxOffset   uint32
	PxSize     uint32
	Width      uint16
	Height     uint16
}

type Loader

type Loader struct {
	CheckMag    bool
	MachineCode string
	User        string
	Comment     string
	Header      *Header
	Palettes    []*Palette
	FlagA       []byte
	FlagB       []byte
	Pixel       []byte
	// contains filtered or unexported fields
}

func NewLoader

func NewLoader() *Loader

func (*Loader) Expand

func (l *Loader) Expand() [][]*Palette

func (*Loader) Init

func (l *Loader) Init(file *os.File)

func (*Loader) Load

func (l *Loader) Load()

type Palette

type Palette struct {
	R uint8
	G uint8
	B uint8
}

Jump to

Keyboard shortcuts

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