Skip to content

class Celestine::Animate
inherits Celestine::Drawable #

Included modules

Celestine::Modules::Animate Celestine::Modules::CommonAnimate

Constants#

TAG = "animate" #

Methods#

#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.

View source

#attribute=(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.

View source

#by : IFNumber? #

An optional way to specify the amount an attribute should change by per frame

#by=(by : IFNumber?) #

An optional way to specify the amount an attribute should change by per frame

#by_units : String? #

What kind of unit by should use when rendering

#by_units=(by_units : String?) #

What kind of unit by should use when rendering

#draw(io : IO) : Nil #

Main draw method for a drawable. Takes in and interacts with an io.

View source

#from : IFNumber? #

An optional way to specify what value to start at in the animation.

#from=(from : IFNumber?) #

An optional way to specify what value to start at in the animation.

#from_units : String? #

What kind of unit from should use when rendering

#from_units=(from_units : String?) #

What kind of unit from should use when rendering

#to : IFNumber? #

An optional way to specify what value to end at in the animation.

#to=(to : IFNumber?) #

An optional way to specify what value to end at in the animation.

#to_units : String? #

What kind of unit to should use when rendering

#to_units=(to_units : String?) #

What kind of unit to should use when rendering

module Celestine::Animate::Attrs #

Included modules

Celestine::Modules::CommonAnimate::Attrs

Constants#

ATTRIBUTE_NAME = "attributeName" #

BY = "by" #

FROM = "from" #

TO = "to" #