
my $path = Clutter::Path->new('M 10,10 C 20,20 20,20 10,30 z');
my $behaviour = Clutter::Behaviour::Path->new($alpha, $path);
$behaviour->apply($rectangle);

Clutter::Behaviour::Path interpolates actors along a defined path.
A path is described by a Clutter::Path object. The path can contain straight line parts and bezier curves. If the path contains 'move-to' nodes then the actors will jump to those coordinates. This can be used make disjoint paths.
When creating a path behaviour in a Clutter::Script, you can specify the path property directly as a string. For example:
{
"id" : "spline-path",
"type" : "ClutterBehaviourPath",
"path" : "M 50 50 L 100 100",
"alpha" : {
"timeline" : "main-timeline",
"function" : "ramp
}
}
Note: If the alpha function is a periodic function, i.e. it returns to 0 after reaching the maximum alpha value, then the actors will walk the path backwards to the starting node.
