Display mode is for drawing a static picture.
- module Graphics.Gloss.Data.Picture
- module Graphics.Gloss.Data.Color
- animateInWindow :: String -> (Int, Int) -> (Int, Int) -> Color -> (Float -> Picture) -> IO ()
Documentation
module Graphics.Gloss.Data.Picture
module Graphics.Gloss.Data.Color
:: String | Name of the window. |
-> (Int, Int) | Initial size of the window, in pixels. |
-> (Int, Int) | Initial position of the window, in pixels. |
-> Color | Background color. |
-> (Float -> Picture) | Function to produce the next frame of animation. It is passed the time in seconds since the program started. |
-> IO () |
Open a new window and display the given animation.
Once the window is open you can use the same commands as with displayInWindow
.