advanced

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Direction

type Direction int
const (
	Left Direction = iota
	Right
	Up
	Down
)

type Model

type Model struct {
	ShouldClose   bool
	IsActive      bool
	ShowDithering bool
	// contains filtered or unexported fields
}

func New

func New(w int) Model

func (Model) BayerSize added in v1.0.0

func (m Model) BayerSize() uint

func (Model) ClusteredDotMatrix added in v1.0.0

func (m Model) ClusteredDotMatrix() dither.OrderedDitherMatrix

func (Model) ClusteredDotName added in v1.0.0

func (m Model) ClusteredDotName() string

func (Model) DitherMatrixName added in v1.0.0

func (m Model) DitherMatrixName() string

func (Model) DitherMode added in v1.0.0

func (m Model) DitherMode() dithering.DitherMode

func (Model) DitherStrength added in v1.0.0

func (m Model) DitherStrength() float32

func (Model) Dithering

func (m Model) Dithering() (bool, bool, dither.ErrorDiffusionMatrix)

func (Model) HelpText added in v1.0.0

func (m Model) HelpText() string

HelpText returns contextual help for the currently focused advanced item.

func (Model) Init

func (m Model) Init() tea.Cmd

func (*Model) RefreshStyles added in v1.0.0

func (m *Model) RefreshStyles()

func (*Model) ResetFocus added in v1.0.0

func (m *Model) ResetFocus()

func (Model) SamplingFunction

func (m Model) SamplingFunction() resize.InterpolationFunction

func (Model) SamplingFunctionName added in v1.0.0

func (m Model) SamplingFunctionName() string

func (*Model) SetConfig added in v1.0.0

func (m *Model) SetConfig(samplingName string, doDither, doSerpentine bool, ditherMode dithering.DitherMode, matrixName, clusteredDotName string, bayerSize int, strength float32)

func (Model) Summary added in v1.0.0

func (m Model) Summary() string

func (Model) Update

func (m Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type State

type State int
const (
	Menu State = iota
	Sampling
	Dithering
	SamplingControls
	DitheringControls
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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