patat-0.12.0.1: Terminal-based presentations using Pandoc
Safe HaskellSafe-Inferred
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

data Transition where Source #

Constructors

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

data TransitionId Source #

Instances

Instances details
Eq TransitionId Source # 
Instance details

Defined in Patat.Transition.Internal

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].