musicforprogramming

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	REFORM_CHARS  = "—~±§|[].+$^@*()•x%!?#"
	HEADER_HEIGHT = 6
	VISUAL_HEIGHT = 4
	FOOTER_HEIGHT = 12
	PANEL_WIDTH   = 32
)

Variables

View Source
var (
	VISUALIZER_0 = []rune("                       _.-•:*^º'")
	VISUALIZER_1 = []rune("               _.-•:*^º'        ")
	VISUALIZER_2 = []rune("       _.-•:*^º'                ")
	VISUALIZER_3 = []rune("_.-•:*^º'                       ")
)
View Source
var TRACK_TITLE = []rune("Episode 1337: cy, the time traveling terminal multiplexer • ")

Functions

This section is empty.

Types

type MFP

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

MFP was inspired by the loading animation on https://musicforprogramming.net/.

func New

func New() *MFP

func (*MFP) Init

func (r *MFP) Init(start image.Image)

func (*MFP) Update

func (r *MFP) Update(delta time.Duration) image.Image

Jump to

Keyboard shortcuts

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