animate

package
v0.0.0-...-f84c86c Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: GPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AnimateTemplates = map[AnimateExportType]string{
	{Compress: false, CPCPlus: false, IsSprite: false}: depackRoutine,
}

Functions

func AnalyzeSpriteBoard

func AnalyzeSpriteBoard(spr [][]byte) []*transformation.DeltaCollection

func Animation

func Animation(filepaths []string, screenMode uint8, export *config.MartineConfig) error

func ConvertToImage

func ConvertToImage(g gif.GIF) []*image.NRGBA

func DeltaMotif

func DeltaMotif(gitFilepath string, cfg *config.MartineConfig, threshold int, initialAddress uint16, mode uint8) error

nolint: funlen

func DeltaPacking

func DeltaPacking(gitFilepath string, cfg *config.MartineConfig, initialAddress uint16, mode uint8, exportVersion DeltaExportFormat) error

nolint: funlen

func DeltaPackingMemory

func DeltaPackingMemory(images []image.Image, cfg *config.MartineConfig, initialAddress uint16, mode uint8) ([]*transformation.DeltaCollection, [][]byte, color.Palette, error)

nolint: funlen

func ExportCompiledSprite

func ExportCompiledSprite(c *transformation.DeltaCollection) string

sprite width, size to change the line

func ExportCompiledSpriteHard

func ExportCompiledSpriteHard(c *transformation.DeltaCollection) string

func ExportDeltaAnimate

func ExportDeltaAnimate(
	imageReference []byte,
	delta []*transformation.DeltaCollection,
	palette color.Palette,
	isSprite bool,
	cfg *config.MartineConfig,
	initialAddress uint16,
	mode uint8,
	filename string,
	exportVersion DeltaExportFormat,
) (string, error)

nolint: funlen, gocognit

Types

type AnimateExportType

type AnimateExportType struct {
	Compress bool
	CPCPlus  bool
	IsSprite bool
}

type AnimateValues

type AnimateValues struct {
	Type           AnimateExportType
	InitialAddress string
	Large          string
	Haut           string
	LigneLarge     string
	Mode           int
	Image          []byte
	Delta          [][]byte
	Palette        color.Palette
}

func (AnimateValues) DisplayCode

func (a AnimateValues) DisplayCode() string

func (AnimateValues) DisplayPalette

func (a AnimateValues) DisplayPalette() string

func (AnimateValues) TableDelta

func (a AnimateValues) TableDelta() string

type DeltaExportFormat

type DeltaExportFormat int
var (
	DeltaExportV1 DeltaExportFormat = 1
	DeltaExportV2 DeltaExportFormat = 2
)

type Z80HspNode

type Z80HspNode struct {
	// contains filtered or unexported fields
}

func NewZ80HspNode

func NewZ80HspNode(byte uint8, offset uint16, samevalue bool, register Z80Register, next *Z80HspNode) *Z80HspNode

func (*Z80HspNode) Code

func (z *Z80HspNode) Code() string

func (*Z80HspNode) InitOpcode

func (z *Z80HspNode) InitOpcode() string

nolint: gocognit

func (*Z80HspNode) NextRegister

func (z *Z80HspNode) NextRegister() Z80Register

func (*Z80HspNode) OffsetInit

func (z *Z80HspNode) OffsetInit() string

func (*Z80HspNode) SetLastNode

func (z *Z80HspNode) SetLastNode(node *Z80HspNode)

func (*Z80HspNode) ValueOpcode

func (z *Z80HspNode) ValueOpcode() string

type Z80Register

type Z80Register string
var (
	A            Z80Register = "a"
	B            Z80Register = "b"
	C            Z80Register = "c"
	D            Z80Register = "d"
	E            Z80Register = "e"
	H            Z80Register = "h"
	L            Z80Register = "l"
	NoneRegister Z80Register = ""
)

Jump to

Keyboard shortcuts

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