convert

package
v0.0.0-...-8d5969d Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 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, num int, rgb, all bool, pal string, dit, gre, pix, col bool) (*Converter, error)

func (*Converter) Convert

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

func (*Converter) Greyscale

func (c *Converter) Greyscale()

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