imj-animation-0.1.0.2: Animation Framework

Safe HaskellNone
LanguageHaskell2010

Imj.Graphics.Animation.Internal

Contents

Synopsis

Animation timing

animationPeriod :: DiffTime Source #

The console can refresh at approx. 21 fps, hence this value seems appropriate (1/25 second)

animationUpdateMargin :: DiffTime Source #

When there are multiple unsynchronized animations running, there could be a lot of scene renderings in the same 1/100th second.

To prevent performance degradation we allow some margin to group update deadlines.

Animation colors

colorFromFrame :: Frame -> LayeredColor Source #

Returns the color used to draw an animation, based on the frame number (relative to the parent animation, if any).