---
name: "Clutter::Effect"
section: "3pm"
platform: "linux"
package: "libclutter-perl"
version: "0.8.0.1-1"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/Clutter::Effect"
---

# Clutter::Effect(3pm)

Clutter::Effect -  Simple animation functions Clutter::Effect contains a set of functions for simple, one-off animations involving a single actor. It is a convenience wrapper around the more complex an powerful animations objects, Clutter::Behaviour, Clutter::Alpha and Clutter::Timeline. Effects are created from a *template*, which binds a Clutter::Timeline and an *alpha function*, similarly to how Clutter::Alpha works. You can reuse a template for multiple animations. After you have created a Clutter::EffectTemplate you can call one of the simple class methods, providing the template object and the parameters for the animation. You can optionally pass a function reference, which will be invoked when the animation stops. Every Clutter::Effect class method returns a copy of the Clutter::Timeline used in the template, so you can control the animation with it.\
 **effecttemplate = Clutter::EffectTemplate-\>new ($timeline, $alpha\_func)** `$timeline` (Clutter::Timeline) `$alpha_func` (scalar)\
 **effecttemplate = Clutter::EffectTemplate-\>new\_for\_duration ($duration, $alpha\_func)** `$duration` (integer) `$alpha_func` (scalar)\
 **timeline = Clutter::Effect-\>depth ($template, $actor,** `$end`**,** `$func`**=undef,** `$data=undef)` `$template` (Clutter::EffectTemplate) `$actor` (Clutter::Actor) `$end` (integer) `$func` (scalar) `$data` (scalar)\
 **timeline = Clutter::Effect-\>fade ($template, $actor,** `$end`**,** `$func`**=undef,** `$data=undef)` `$template` (Clutter::EffectTemplate) `$actor` (Clutter::Actor) `$end` (unsigned) `$func` (scalar) `$data` (scalar)\
 **timeline = Clutter::Effect-\>move ($template, $actor,** `$x`**,** `$y`**,** `$func`**=undef,** `$data=undef)` `$template` (Clutter::EffectTemplate) `$actor` (Clutter::Actor) `$x` (integer) `$y` (integer) `$func` (scalar) `$data` (scalar)\
 **timeline = Clutter::Effect-\>rotate ($template, $actor,** `$axis`**,** `$angle`**,** `$x`**=0,** `$y`**=0,** `$z`**=0,** `$direction`**=CLUTTER\_ROTATE\_CW,** `$func`**=undef,** `$data=undef)` `$template` (Clutter::EffectTemplate) `$actor` (Clutter::Actor) `$axis` (Clutter::RotateAxis) `$angle` (double) `$x` (integer) `$y` (integer) `$z` (integer) `$direction` (Clutter::RotateDirection) `$func` (scalar) `$data` (scalar)\
 **timeline = Clutter::Effect-\>scale ($template, $actor,** `$x_end`**,** `$y_end`**,** `$func`**=undef,** `$data=undef)` `$template` (Clutter::EffectTemplate) `$actor` (Clutter::Actor) `$x_end` (double) `$y_end` (double) `$func` (scalar) `$data` (scalar)\
 **boolean = $template\_**-\>**get\_timeline\_clone**\
 **$template\_**-\>**set\_timeline\_clone ($clone)** `$clone` (boolean)\
 **enum Clutter::RotateAxis** 'x-axis' / 'CLUTTER\_X\_AXIS' 'y-axis' / 'CLUTTER\_Y\_AXIS' 'z-axis' / 'CLUTTER\_Z\_AXIS'\
 **enum Clutter::RotateDirection** 'cw' / 'CLUTTER\_ROTATE\_CW' 'ccw' / 'CLUTTER\_ROTATE\_CCW' Clutter Copyright (C) 2006  OpenedHand Ltd. This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public Library version 2.1, or under the terms of the Artistic License.  See Clutter for the full copyright notice.
