config

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: Unlicense Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DataWidth8 dataWidth = 1 << iota
	DataWidth16
	DataWidth32
	DataWidth64
)

Data width in bits to bytes

View Source
const CellHeight = 8
View Source
const CellWidth = 6

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	GetDataWidthInBytesAsInt() int
	GetDataWidthInBytes() dataWidth
	GetColorSimilarityThreshold() int
	GetFlushAfterEveryWrite() bool
	GetFlushAfterEveryCellWrite() bool
	GetImageWidth() int
	GetImageHeight() int
	GetWidthInCells() int
	GetHeightInCells() int

	SetDataWidthInBytes(dataWidth)
	SetColorSimilarityThreshold(int)
	SetFlushAfterEveryWrite(bool)
	SetFlushAfterEveryCellWrite(bool)
}

func New

func New(
	dataWidthInBytes dataWidth,
	colorSimilarityThreshold int,
	flushAfterEveryWrite bool,
	flushAfterEveryCellWrite bool,
) Config

func NewDefaultConfig added in v0.0.3

func NewDefaultConfig() Config

Jump to

Keyboard shortcuts

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