Emmanuele Bassi > Clutter > xs/ClutterBehaviourEllipse.xs

Download:
Clutter-1.002.tar.gz

Annotate this POD

CPAN RT

New  2
Open  2
View Bugs
Report a bug
Source  

SYNOPSIS ^

    my $behaviour = Clutter::Behaviour::Ellipse->new(
        Clutter::Alpha->new($timeline, 'linear'),
        [ 100, 100 ],   # center of the ellipse
        [ 250, 250 ],   # width and height of the ellipse
        [   0, 360 ],   # initial and final angle
    );

    $behaviour->apply($icon_group);

DESCRIPTION ^

Clutter::Behaviour::Ellipse interpolates actors along a path defined by an ellipse.

Note: When applying an ellipse behaviour to an actor, the behaviour will update the actor's position and depth and set them to what is dictated by the ellipses initial position.

SEE ALSO ^

Clutter::Behaviour, Clutter::Alpha