convert

package
v0.0.0-...-1e39f03 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorSymbol

type ColorSymbol struct {
	Symbol palette.SymbolRune
	Color  palette.Thread
	Text   string
}

type Converter

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

func NewConverter

func NewConverter(filename string, flags Flags) (*Converter, error)

func (*Converter) Convert

func (c *Converter) Convert() (NewData, error)

func (*Converter) Greyscale

func (c *Converter) Greyscale()

type Flags

type Flags struct {
	Num       int
	RGB       bool
	All       bool
	Palette   string
	Dither    bool
	Greyscale bool
	Pixel     bool
	Color     bool
	CSV       string
}

type Legend

type Legend struct {
	Color  palette.Thread
	Count  int
	Symbol rune
}

type NewData

type NewData struct {
	Image   *image.RGBA
	Count   map[palette.Thread]int
	Legend  []Legend
	Symbols [][]ColorSymbol
	Path    string
	Extra   string
	Scheme  string
}

Jump to

Keyboard shortcuts

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