| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Vis.Vis
Synopsis
- data Options = Options {}
- data Antialiasing
- vis :: Real b => Options -> Double -> a -> (FullState a -> IO a) -> (FullState a -> IO (VisObject b, Maybe Cursor)) -> (a -> IO ()) -> Maybe (a -> Key -> KeyState -> Modifiers -> Position -> a) -> Maybe (a -> Position -> a) -> Maybe (a -> Position -> a) -> IO ()
- visMovie :: forall b. Real b => Options -> (Int -> FilePath) -> Double -> [VisObject b] -> Maybe Cursor -> IO ()
- visMovieImmediately :: forall b. Real b => Options -> (Int -> FilePath) -> Double -> [VisObject b] -> Maybe Cursor -> IO ()
- type FullState a = (a, Float)
Documentation
Constructors
| Options | |
Fields
| |
data Antialiasing Source #
Constructors
| Aliased | |
| Smoothed | |
| Multisampled Int |
Instances
| Show Antialiasing Source # | |
Defined in Vis.Vis Methods showsPrec :: Int -> Antialiasing -> ShowS # show :: Antialiasing -> String # showList :: [Antialiasing] -> ShowS # | |
| Eq Antialiasing Source # | |
Defined in Vis.Vis | |
| Ord Antialiasing Source # | |
Defined in Vis.Vis Methods compare :: Antialiasing -> Antialiasing -> Ordering # (<) :: Antialiasing -> Antialiasing -> Bool # (<=) :: Antialiasing -> Antialiasing -> Bool # (>) :: Antialiasing -> Antialiasing -> Bool # (>=) :: Antialiasing -> Antialiasing -> Bool # max :: Antialiasing -> Antialiasing -> Antialiasing # min :: Antialiasing -> Antialiasing -> Antialiasing # | |
Arguments
| :: Real b | |
| => Options | user options |
| -> Double | sample time |
| -> a | initial state |
| -> (FullState a -> IO a) | sim function |
| -> (FullState a -> IO (VisObject b, Maybe Cursor)) | draw function, can give a different cursor |
| -> (a -> IO ()) | set camera function |
| -> Maybe (a -> Key -> KeyState -> Modifiers -> Position -> a) | keyboard/mouse callback |
| -> Maybe (a -> Position -> a) | motion callback |
| -> Maybe (a -> Position -> a) | passive motion callback |
| -> IO () |
Arguments
| :: forall b. Real b | |
| => Options | user options |
| -> (Int -> FilePath) | where to write the bitmaps |
| -> Double | sample time |
| -> [VisObject b] | movie to draw |
| -> Maybe Cursor | optional cursor |
| -> IO () |
Make a series of images, one from each VisObject.
When visMovieImmediately is executed a window is opened and without
waiting the images are created and saved to disk.