curve

package
v0.14.7 Latest Latest
Warning

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

Go to latest
Published: May 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Curve

type Curve struct {
	*gg.Context
	// contains filtered or unexported fields
}

func New

func New(options ...Option) *Curve

func (*Curve) AddNote

func (s *Curve) AddNote(cl color.Color, idx int, num uint8, denom uint8, left float64, start, dur float64) (barlength float64)

type Option

type Option func(*Curve)

func LineWidth

func LineWidth(w float64) Option

func MaxHeight

func MaxHeight(height int) Option

func MaxWidth

func MaxWidth(width int) Option

func MiddleLine

func MiddleLine(n int) Option

func NumNotes

func NumNotes(n int) Option

func PaddingLeft

func PaddingLeft(p float64) Option

func PaddingTop

func PaddingTop(p float64) Option

func Radius

func Radius(r float64) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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