Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphics.DynamicGraph.TextureLine
Description
Draw and update line graphs with OpenGL.
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.