drawing

package
v0.0.0-...-191fbf7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorGradient

type ColorGradient struct {
	From lipgloss.Color
	To   lipgloss.Color
}

type Plot

type Plot[T constraints.Float] struct {
	// contains filtered or unexported fields
}

func New

func New[T constraints.Float](gradient ColorGradient) Plot[T]

func (Plot[T]) Init

func (Plot[T]) Init() tea.Cmd

func (*Plot[T]) Push

func (model *Plot[T]) Push(value T)

Adds a new value to the Plot.

func (*Plot[T]) SetSize

func (model *Plot[T]) SetSize(width, height int)

func (Plot[T]) Update

func (model Plot[T]) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Plot[T]) View

func (model Plot[T]) View() string

type PushMsg

type PushMsg[T constraints.Float] struct {
	Value T
}

Jump to

Keyboard shortcuts

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