image

package
v0.0.0-...-6db7e73 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateAnimationGIF

func GenerateAnimationGIF(ch <-chan *image.Paletted, width uint, height uint, palette color.Palette, delay uint) (*gif.GIF, error)

Types

type Point

type Point = gg.Point

type WaveformImage

type WaveformImage struct {
	Width     uint
	Height    uint
	BgColor   string
	FgColor   string
	LineWidth float64
	// contains filtered or unexported fields
}

func NewWaveformImage

func NewWaveformImage(width uint, height uint, bgColor string, fgColor string, lineWidth float64) (*WaveformImage, error)

func (*WaveformImage) Clear

func (wimg *WaveformImage) Clear()

func (*WaveformImage) ConvertToPaletted

func (wimg *WaveformImage) ConvertToPaletted(colorPalette color.Palette) *image.Paletted

func (*WaveformImage) DrawBackground

func (wimg *WaveformImage) DrawBackground()

func (*WaveformImage) DrawPolyLine

func (wimg *WaveformImage) DrawPolyLine(points []Point)

func (*WaveformImage) DrawWaveform

func (wimg *WaveformImage) DrawWaveform(data []float32)

func (*WaveformImage) Image

func (wimg *WaveformImage) Image() image.Image

Jump to

Keyboard shortcuts

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