Types
PlayDirection = enum Forward, Backward
Animator[T] = ref object play*: proc (direction: PlayDirection; doneCallback: (() -> void) = nil): void value*: Observable[T]
Procs
proc createAnimator(duration: float): Animator[float] {...}{.raises: [], tags: [].}
proc start[T](self: Animator[T]; callback: (() -> void) = nil): void
proc playBack[T](self: Animator[T]; callback: (() -> void) = nil): void
proc playToEndThenBack[T](self: Animator[T]; callback: (() -> void) = nil): void
proc map[T, R](self: Animator[T]; mapper: (T -> R)): Animator[R]
Templates
template createAnimator[T](duration: float; `from`: T; to: T): Animator[T]