class Celestine::Animate
inherits Celestine::Drawable
#
Included modules
Celestine::Modules::Animate
Celestine::Modules::CommonAnimate
Constants#
TAG = "animate"
#
"animate"
Methods#
#attribute : String?
#
: String?
The attribute that will be controlled by the animation. You can dig into any Celestine::Drawable
's Attrs
module (ex: Celestine::Circle::Attrs
) and it will contain a
list of all attributes the drawable has access to, however, not all attributes are animatable.
#attribute=(attribute : String?)
#
(attribute : String?)
The attribute that will be controlled by the animation. You can dig into any Celestine::Drawable
's Attrs
module (ex: Celestine::Circle::Attrs
) and it will contain a
list of all attributes the drawable has access to, however, not all attributes are animatable.
#by : IFNumber?
#
: IFNumber?
An optional way to specify the amount an attribute should change by per frame
#by=(by : IFNumber?)
#
(by : IFNumber?)
An optional way to specify the amount an attribute should change by per frame
#draw(io : IO) : Nil
#
(io : IO) : Nil
Main draw method for a drawable. Takes in and interacts with an io.
#from : IFNumber?
#
: IFNumber?
An optional way to specify what value to start at in the animation.
#from=(from : IFNumber?)
#
(from : IFNumber?)
An optional way to specify what value to start at in the animation.
#to : IFNumber?
#
: IFNumber?
An optional way to specify what value to end at in the animation.
#to=(to : IFNumber?)
#
(to : IFNumber?)
An optional way to specify what value to end at in the animation.