class Animation extends AnyRef
An Animation
object has an iterable sequence of Pics which it can show in a
separate window (a simple View).
- Self Type
- Animation
- Alphabetic
- By Inheritance
- Animation
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Animation(frames: Iterable[Pic], frameRate: Double, terminateOnClose: Boolean, atEnd: AtEnd)
- frames
the Pics that the animation consists of, in order; they should be identical in size
- frameRate
a target speed (in Pics per second), which the
Animation
will roughly observe if possible- terminateOnClose
whether the entire application should exit when the animation window is closed
- atEnd
what should happen once the animation reaches the final Pic
Value Members
- val atEnd: AtEnd
- val frameRate: Double
- def frameStream: LazyList[Pic]
Returns the frames of this animation as a
LazyList
.Returns the frames of this animation as a
LazyList
. If atEnd is set to Animation.Loop, this will be a repeating, infinite list. Otherwise, it just contains each frame once, as set by the constructor parameter. - def hide(): Unit
Closes the view that displays the animation.
Closes the view that displays the animation.
- See also
- def show(): Unit
Starts a view that displays the animation.
Starts a view that displays the animation.
- See also
- val terminateOnClose: Boolean