animate


Description:

public void animate (double x, double y, double scale, double degrees, bool absolute, int duration, int step_time, CanvasAnimateType type)

Animates an item from its current position to the given offsets, scale and rotation.

Parameters:

this

an item.

x

the final x coordinate.

y

the final y coordinate.

scale

the final scale.

degrees

the final rotation. This can be negative to rotate anticlockwise, and can also be greater than 360 to rotate a number of times.

absolute

if the x, y, scale and degrees values are absolute, or relative to the current transform. Note that absolute animations only work if the item currently has a simple transform. If the item has a shear or some other complicated transform it may result in strange animations.

duration

the duration of the animation, in milliseconds (1/1000ths of a second).

step_time

the time between each animation step, in milliseconds.

type

specifies what happens when the animation finishes.