Graphics.Gloss.Interface.Display
Description
Display mode is for drawing a static picture.
- module Graphics.Gloss.Data.Picture
- module Graphics.Gloss.Data.Color
- displayInWindow :: String -> (Int, Int) -> (Int, Int) -> Color -> Picture -> IO ()
Documentation
module Graphics.Gloss.Data.Picture
module Graphics.Gloss.Data.Color
Arguments
:: 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. |
-> Picture | The picture to draw. |
-> IO () |
Open a new window and display the given picture.
Use the following commands once the window is open:
- Quit - esc-key.
- Move Viewport - left-click drag, arrow keys.
- Rotate Viewport - right-click drag, control-left-click drag, or home/end-keys.
- Zoom Viewport - mouse wheel, or page up/down-keys.