Documentation ¶
Index ¶
- Variables
- func AmsdosFilename(inputPath, ext string) string
- func MaskIsAllowed(mode uint8, value uint8) bool
- func ModeMaskSprite(mode uint8) ([]uint8, error)
- func RemoveUnsupportedChar(s string) string
- type MartineConfig
- func (e *MartineConfig) AddFile(file string)
- func (e *MartineConfig) AmsdosFilename() []byte
- func (e *MartineConfig) AmsdosFullPath(filePath string, newExtension string) string
- func (e *MartineConfig) Filename() string
- func (e *MartineConfig) Fullpath(ext string) string
- func (e *MartineConfig) GetAmsdosFilename(filePath string, ext string) string
- func (e *MartineConfig) ImportInkSwap(s string) error
- func (e *MartineConfig) OsFilename(ext string) string
- func (e *MartineConfig) OsFullPath(filePath string, newExtension string) string
- func (e *MartineConfig) SetLineWith(i string) error
- func (e *MartineConfig) SwapInk(inkIndex int) int
- func (e *MartineConfig) TransformToAmsdosFile(filePath string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Egx1Mode = 1 Egx2Mode = 2 )
var amsdosFilenameOnce sync.Once
View Source
var ErrorNotAllowed = errors.New("error not allowed")
Functions ¶
func AmsdosFilename ¶
func MaskIsAllowed ¶
func ModeMaskSprite ¶
func RemoveUnsupportedChar ¶
Types ¶
type MartineConfig ¶
type MartineConfig struct { InputPath string OutputPath string PalettePath string InkPath string KitPath string M4RemotePath string M4Host string M4Autoexec bool Size constants.Size Compression compression.CompressionMethod NoAmsdosHeader bool RotationMode bool Rotation3DMode bool Rotation3DX0 int Rotation3DY0 int Rotation3DType int TileMode bool RollMode bool RollIteration int TileIterationX int TileIterationY int M4 bool Dsk bool Ink bool Kit bool Pal bool Scr bool Win bool Overscan bool Json bool Ascii bool CpcPlus bool CustomDimension bool DskFiles []string Tiles *export.JsonSlice DeltaMode bool ExtendedDsk bool ResizingAlgo imaging.ResampleFilter DitheringAlgo int DitheringMatrix [][]float32 DitheringMultiplier float64 DitheringWithQuantification bool DitheringType constants.DitheringType RotationRraBit int RotationRlaBit int RotationSraBit int RotationSlaBit int RotationLosthighBit int RotationLostlowBit int RotationKeephighBit int RotationKeeplowBit int RotationIterations int Flash bool FlashScreenFilepath1 string FlashScreenFilepath2 string FlashPaletteFilepath1 string FlashPaletteFilepath2 string EgxFormat int EgxMode1 uint8 EgxMode2 uint8 Sna bool SnaPath string SpriteHard bool SplitRaster bool ScanlineSequence []int CustomScanlineSequence bool MaskSprite uint8 MaskOrOperation bool MaskAndOperation bool ZigZag bool Animate bool Reducer int OneLine bool OneRow bool InkSwapper map[int]int LineWidth int FilloutGif bool Saturation float64 Brightness float64 ExportAsGoFile bool DoubleScreenAddress bool UseKmeans bool KmeansThreshold float64 // contains filtered or unexported fields }
func NewMartineConfig ¶
func NewMartineConfig(input, output string) *MartineConfig
func (*MartineConfig) AddFile ¶
func (e *MartineConfig) AddFile(file string)
func (*MartineConfig) AmsdosFilename ¶
func (e *MartineConfig) AmsdosFilename() []byte
func (*MartineConfig) AmsdosFullPath ¶
func (e *MartineConfig) AmsdosFullPath(filePath string, newExtension string) string
func (*MartineConfig) Filename ¶
func (e *MartineConfig) Filename() string
func (*MartineConfig) Fullpath ¶
func (e *MartineConfig) Fullpath(ext string) string
func (*MartineConfig) GetAmsdosFilename ¶
func (e *MartineConfig) GetAmsdosFilename(filePath string, ext string) string
func (*MartineConfig) ImportInkSwap ¶
func (e *MartineConfig) ImportInkSwap(s string) error
func (*MartineConfig) OsFilename ¶
func (e *MartineConfig) OsFilename(ext string) string
func (*MartineConfig) OsFullPath ¶
func (e *MartineConfig) OsFullPath(filePath string, newExtension string) string
func (*MartineConfig) SetLineWith ¶
func (e *MartineConfig) SetLineWith(i string) error
func (*MartineConfig) SwapInk ¶
func (e *MartineConfig) SwapInk(inkIndex int) int
func (*MartineConfig) TransformToAmsdosFile ¶
func (e *MartineConfig) TransformToAmsdosFile(filePath string) string
Click to show internal directories.
Click to hide internal directories.