| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.DynamicGraph.Waterfall
Description
Draw and update waterfall plots with OpenGL. Useful for spectrograms.
Documentation
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.