tui

package
v0.0.0-...-fbb5caf Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDelay

func GetDelay(level int) time.Duration

func StartTea

func StartTea(seed int64)

Types

type Model

type Model struct {
	Grid     *automata.Grid
	Noise    gaul.Rng
	Offset   float64
	Timer    timer.Model
	Seed     int64
	Speed    int
	Rows     int
	Cols     int
	WrapEnds bool
	// contains filtered or unexported fields
}

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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