rotorrpm

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indicator

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

func NewIndicator

func NewIndicator(cfg *IndicatorConfig) *Indicator

func (*Indicator) GetImage

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

func (*Indicator) GetRotorRPM

func (i *Indicator) GetRotorRPM() (rotorRPM float64)

func (*Indicator) SetRotorRPM

func (i *Indicator) SetRotorRPM(rotorRPM float64)

type IndicatorConfig

type IndicatorConfig struct {
	Width           int
	Height          int
	TickLength      int
	MinorTickLength int
	LineWidth       float64
	Color           color.NRGBA
	BorderColor     color.NRGBA
	Rect            image.Rectangle
}

Jump to

Keyboard shortcuts

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