Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Duration = Duration Double
- threadDelayDuration :: Duration -> IO ()
- data Transition where
- Transition :: FromJSON conf => (conf -> TransitionGen) -> Transition
- type TransitionGen = Size -> Matrix -> Matrix -> StdGen -> NonEmpty (Matrix, Duration)
- data TransitionId
- data TransitionInstance = TransitionInstance {}
- newTransition :: TransitionGen -> Size -> Doc -> Doc -> IO TransitionInstance
- stepTransition :: TransitionId -> TransitionInstance -> Maybe TransitionInstance
- evenlySpacedFrames :: Maybe Double -> Maybe Int -> NonEmpty (Double, Duration)
Documentation
threadDelayDuration :: Duration -> IO () Source #
data Transition where Source #
Transition :: FromJSON conf => (conf -> TransitionGen) -> Transition |
data TransitionId Source #
Instances
Eq TransitionId Source # | |
Defined in Patat.Transition.Internal (==) :: TransitionId -> TransitionId -> Bool # (/=) :: TransitionId -> TransitionId -> Bool # |
newTransition :: TransitionGen -> Size -> Doc -> Doc -> IO TransitionInstance Source #