linsyking/messenger-extra/5.0.2

NOTE: the latest version is 7.0.0

Renamed to elm-messenger/messenger-extra. That is where the repository lives now. It has not been published as a package under the new name.

Versions published as linsyking/messenger-extra still install under that name. 12 versions of 20 come from the new location (see their notes).

Messenger.GlobalComponents.Transition.Base

Transition Base

= NMTransition NoMixTransition
| MTransition MixTransition

Transition

type alias SingleTrans =
Renderable -> Float -> Renderable

Single Transition

type alias DoubleTrans =
Renderable -> Renderable -> Float -> Renderable

Double Transition

genMixTransition : ( DoubleTrans, Duration ) -> Transition

Generate mixed transition

( SingleTrans, Duration )
-> ( SingleTrans, Duration )

Generate nomix transition

nullTransition : Renderable -> Float -> Renderable

Null Transition

type alias MixTransition =
{ currentTransition : Float
, t : Float
, trans : DoubleTrans
}

Mix Transition

type alias NoMixTransition =
{ currentTransition : Float
, outT : Float
, inT : Float
, outTrans : SingleTrans
, inTrans : SingleTrans
}

Transition has two stages:

  1. From the old scene to the transition scene

  2. From the transition scene to the new scene