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

Safe HaskellNone
LanguageHaskell2010

Graphics.DynamicGraph.TextureLine

Description

Synopsis

Documentation

graph :: IsPixelData a => Int -> Int -> Int -> Int -> EitherT String IO (a -> IO ()) Source

(graph windowWidth windowHeight samples xResolution) creates a window of width windowWidth and height windowHeight for displaying a line graph. A function is returned for updating the line graph. It takes an instance of IsPixelData of length samples as the y values and draws a line graph with xResolution vertices.

graphAsConsumer :: IsPixelData a => Int -> Int -> Int -> Int -> EitherT String IO (Consumer a IO ()) Source

Same as above, but returns a Consumer instead of an update function