indicator

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Width               int
	Height              int
	TickLength          int
	MinorTickLength     int
	LineWidth           float64
	Color               color.NRGBA
	BorderColor         color.NRGBA
	Rect                image.Rectangle
	MinValue            int
	MaxValue            int
	MinFixedWindowValue int
	MaxFixedWindowValue int
	MinTickStep         int
	GetTickLength       func(value int) float64
	MinSafeValue        *int
	MaxAllowedValue     *int
	MinLabelStep        int
	GetLabelOffset      func(value int) float64
}

type Indicator

type Indicator struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) *Indicator

func (*Indicator) GetImage

func (i *Indicator) GetImage() (img *ebiten.Image, isRedrawn bool)

func (*Indicator) GetValue

func (i *Indicator) GetValue() (value float64)

func (*Indicator) SetValue

func (i *Indicator) SetValue(value float64)

Jump to

Keyboard shortcuts

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