AnimateObservableOps

class AnimateObservableOps[Alg <: ([x[_]] =>> Algebra[x]), F[_], A](frames: Observable[Picture[Alg, F, A]])
class Object
trait Matchable
class Any

Value members

Concrete methods

def animate[Frame, Canvas](frame: Frame, cb: Either[Throwable, A] => Unit)(implicit a: AnimationRenderer[Canvas], e: Renderer[Alg, F, Frame, Canvas], s: Scheduler, m: Monoid[A]): Unit

Render an Observable that is generating frames an appropriate rate for animation.

Render an Observable that is generating frames an appropriate rate for animation.

def animateToIO[Frame, Canvas](frame: Frame)(implicit a: AnimationRenderer[Canvas], e: Renderer[Alg, F, Frame, Canvas], s: Scheduler, m: Monoid[A]): IO[A]

Create an effect that, when run, will render an Observable that is generating frames an appropriate rate for animation.

Create an effect that, when run, will render an Observable that is generating frames an appropriate rate for animation.

def animateWithCanvas[Canvas](canvas: Canvas, cb: Either[Throwable, A] => Unit)(implicit a: AnimationRenderer[Canvas], e: Renderer[Alg, F, _, Canvas], s: Scheduler, m: Monoid[A]): Unit

Render an Observable that is generating frames an appropriate rate for animation.

Render an Observable that is generating frames an appropriate rate for animation.

def animateWithCanvasToIO[Canvas](canvas: Canvas)(implicit a: AnimationRenderer[Canvas], e: Renderer[Alg, F, _, Canvas], s: Scheduler, m: Monoid[A]): IO[A]

Create an effect that, when run, will render an Observable that is generating frames an appropriate rate for animation.

Create an effect that, when run, will render an Observable that is generating frames an appropriate rate for animation.

def withFrameRate(period: FiniteDuration): Observable[Picture[Alg, F, A]]

Makes this Observable produce frames with the given period between frames. This is useful if the Observable is producing frames too quickly or slowly for the desired animation.

Makes this Observable produce frames with the given period between frames. This is useful if the Observable is producing frames too quickly or slowly for the desired animation.

A convenience derived from the throttle method on Observable.