Plays one transition: owns the under and over layers, advances with update(dt) in real
time and tells its onDone once. Game runs one of these around a scene change; it is exported so
a game with its own compositing can run a transition the same way.
constincoming = newContainer(); construnner = newTransitionRunner({ transition:dissolve(), duration:0.5 }, { width:800, height:600 }, null, incoming); // put runner.under, incoming and runner.over on the stage, in that order while (!runner.update(1 / 60)) continue; console.log(runner.done); // true
Plays one transition: owns the
underandoverlayers, advances withupdate(dt)in real time and tells itsonDoneonce.Gameruns one of these around a scene change; it is exported so a game with its own compositing can run a transition the same way.Example