imj-base-0.1.0.2: Game engine with geometry, easing, animated text, delta rendering.

Safe HaskellNone
LanguageHaskell2010

Imj.Iteration

Description

Functions and types around the notion of iteration.

Iterations are used for animations (Imj.Graphics.Animation.Design) and evolutions (Imj.Graphics.Interpolation.Evolution).

Synopsis

Documentation

data Iteration Source #

An Iteration has a Speed and an iterator: Frame

Constructors

Iteration !Speed !Frame 

newtype Speed Source #

The Speed at which the iteration occurs (if speed > 1, some Frames are skipped).

Constructors

Speed Int 

nextIteration :: Iteration -> Iteration Source #

Iterates forward.

previousIteration :: Iteration -> Iteration Source #

Iterates backward.