patat-0.14.2.0: Terminal-based presentations using Pandoc
Safe HaskellNone
LanguageHaskell2010

Patat.Transition.Internal

Synopsis

Documentation

newtype Duration Source #

Constructors

Duration Double 

Instances

Instances details
Show Duration Source # 
Instance details

Defined in Patat.Transition.Internal

Methods

showsPrec :: Int -> Duration -> ShowS

show :: Duration -> String

showList :: [Duration] -> ShowS

data Transition where Source #

Constructors

Transition :: forall conf. FromJSON conf => (conf -> TransitionGen) -> Transition 

type TransitionGen = Size -> Matrix -> Matrix -> StdGen -> NonEmpty (Matrix, Duration) Source #

data TransitionId Source #

Instances

Instances details
Eq TransitionId Source # 
Instance details

Defined in Patat.Transition.Internal

Methods

(==) :: TransitionId -> TransitionId -> Bool

(/=) :: TransitionId -> TransitionId -> Bool

evenlySpacedFrames :: Maybe Double -> Maybe Int -> NonEmpty (Double, Duration) Source #

Given an optional duration and frame rate, generate a sequence of evenly spaced frames, represented by a number ranging from [0 .. 1].