renderer

package
v0.0.0-...-09c32ef Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PNGOptions

type PNGOptions struct {
	FretboardOffsetX float64
	FretboardOffsetY float64
	DrawTitle        bool
	TextDisplayMode  TextDisplayMode
}

type PNGRenderer

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

func NewPNGRenderer

func NewPNGRenderer(fretboard *fretboard.Fretboard, options PNGOptions) PNGRenderer

func (PNGRenderer) Render

func (p PNGRenderer) Render(w io.Writer) error

type TextDisplayMode

type TextDisplayMode uint
const (
	TextDisplayModeDefault TextDisplayMode = iota
	TextDisplayModeIntervalRelativeToScale
	TextDisplayModeIntervalRelativeToChord
)

Jump to

Keyboard shortcuts

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