Documentation
¶
Index ¶
- Constants
- func DrawFFT(img draw.Image, gr Gradient, samples []float64, bins int)
- func DrawWaveform(params WaveformParams, img draw.Image, samples []float64)
- func ParseColor(text string) color.RGBA
- func ReadOgg(r *oggvorbis.Reader) ([]float64, error)
- func ReadOggFile(path string) ([]float64, error)
- type Gradient
- type Line
- type WaveformParams
Constants ¶
View Source
const ( FlagDrawAvg = 1 // Draws the average FlagDrawMax = 2 // Draws the maximum )
Variables ¶
This section is empty.
Functions ¶
func DrawWaveform ¶
func DrawWaveform(params WaveformParams, img draw.Image, samples []float64)
DrawWaveform calculates and draws the waveform
func ParseColor ¶
ParseColor interpretates a string representation of a color as RGBA
func ReadOggFile ¶
ReadOggFile reads a ogg/vorbis file
Types ¶
type Gradient ¶
func NewGradient ¶
func NewGradient() Gradient
Click to show internal directories.
Click to hide internal directories.