dynamic-graph-0.1.0.0: Draw and update graphs in real time with OpenGL

Safe HaskellNone
LanguageHaskell2010

Graphics.DynamicGraph.Waterfall

Description

Draw and update waterfall plots with OpenGL. Useful for spectrograms.

Synopsis

Documentation

jet :: [GLfloat] Source

The matlab / octave "jet" color map

jet_mod :: [GLfloat] Source

"jet" modified so that low values are a darker blue

hot :: [GLfloat] Source

The matlab / octave "hot" color map

bw :: [GLfloat] Source

Ranges from black to white

wb :: [GLfloat] Source

Ranges from white to black

graph :: IsPixelData a => Int -> Int -> Int -> Int -> [GLfloat] -> EitherT String IO (Consumer a IO ()) Source

(graph windowWidth windowHeight width height colormap) creates a window of width windowWidth and height windowHeight for displaying a waterfall plot. A Consumer is returned for updating the waterfall plot. Feeding an instance of IsPixelData of length width shifts all rows of the waterfall down and updates the top row with the data. The waterfall is height rows high. colorMap is used to map values to display color.