Animation

An object for describing animation (frame-by-frame, by changing rendering objects among themselves).

The work of such animation takes place not only with images, but with drawn objects, implemented through IDrawableEx.

Constructors

this
this(float speed, bool isRepeat)

Members

Functions

draw
void draw(IRenderer renderer, Vecf position)
Undocumented in source. Be warned that the author may not have intended to support it.
drawEx
void drawEx(IRenderer renderer, Vecf position, float angle, Vecf center, Vecf size, ubyte alpha, Color!ubyte color)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()

Starts the animation from the beginning.

step
IDrawableEx step()

Carries out animation of objects by frame-by-frame change.

Properties

currentFrame
IDrawableEx currentFrame [@property getter]

The current frame of the animation.

numFrame
float numFrame [@property getter]

The current position of the animation.

numFrame
float numFrame [@property setter]

The current position of the animation.

Variables

frames
IDrawableEx[] frames;

Animation frames.

isRepeat
bool isRepeat;

When the animation ends, whether the animation needs to be re-run.

speed
float speed;

Animation speed.

Inherited Members

From IDrawable

draw
void draw(IRenderer renderer, Vecf position)

draw object implemetation

From IDrawableEx

drawEx
void drawEx(IRenderer renderer, Vecf position, float angle, Vecf center, Vecf size, ubyte alpha, Color!ubyte color)

draw object implemetation

Meta