Documentation ¶
Index ¶
- Variables
- func AnalyzeSpriteBoard(spr [][]byte) []*transformation.DeltaCollection
- func Animation(filepaths []string, screenMode uint8, export *config.MartineConfig) error
- func ConvertToImage(g gif.GIF) []*image.NRGBA
- func DeltaMotif(gitFilepath string, cfg *config.MartineConfig, threshold int, ...) error
- func DeltaPacking(gitFilepath string, cfg *config.MartineConfig, initialAddress uint16, ...) error
- func DeltaPackingMemory(images []image.Image, cfg *config.MartineConfig, initialAddress uint16, ...) ([]*transformation.DeltaCollection, [][]byte, color.Palette, error)
- func ExportCompiledSprite(c *transformation.DeltaCollection) string
- func ExportCompiledSpriteHard(c *transformation.DeltaCollection) string
- func ExportDeltaAnimate(imageReference []byte, delta []*transformation.DeltaCollection, ...) (string, error)
- type AnimateExportType
- type AnimateValues
- type DeltaExportFormat
- type Z80HspNode
- type Z80Register
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 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 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) 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 = "" )
Click to show internal directories.
Click to hide internal directories.