class

Celestine::Animate

Inherits Celestine::Modules::CommonAnimate / Celestine::Modules::Animate / Celestine::Drawable / Reference / Object

Constants

TAG = "animate"

Instance methods

attribute

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.

Source
attribute=(attribute : String | Nil)

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.

Source
by

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

by=(by : IFNumber | Nil)

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

by_units

What kind of unit by should use when rendering

by_units=(by_units : String | Nil)

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.

Source
from

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

from=(from : IFNumber | Nil)

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

from_units

What kind of unit from should use when rendering

from_units=(from_units : String | Nil)

What kind of unit from should use when rendering

to

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

to=(to : IFNumber | Nil)

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

to_units

What kind of unit to should use when rendering

to_units=(to_units : String | Nil)

What kind of unit to should use when rendering

Nested types