viz

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeGradient

func MakeGradient(colors []colorful.Color) (rc []colorful.Color, err error)

func MakePalette

func MakePalette(steps int, hex ...string) (pc []colorful.Color, err error)

func RenderCircle

func RenderCircle(w io.Writer, scr score.Score, opt CircleConfig) *svg.SVG

Types

type CircleConfig

type CircleConfig struct {
	MaxR        float64
	MinR        float64
	MaxRNode    float64
	Width       float64
	Height      float64
	FillOpacity float64
	Colors      []colorful.Color
	Filled      bool
	Stroke      bool
}

Jump to

Keyboard shortcuts

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