---
name: "Clutter::Behaviour::Opacity"
section: "3pm"
platform: "linux"
package: "libclutter-perl"
version: "1.002-1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/Clutter::Behaviour::Opacity"
---

# Clutter::Behaviour::Opacity(3pm)

A behaviour controlling opacity

## NAME

Clutter::Behaviour::Opacity - A behaviour controlling opacity

## SYNOPSIS

```
    my $behaviour = Clutter::Behaviour::Opacity->new();
    $behaviour->set_alpha(Clutter::Alpha->new($timeline, 'linear'));
    $behaviour->set_bounds(255, 0);     # fade out
    $behaviour->apply($actor);
    $timeline->start();
```

## DESCRIPTION

**Clutter::Behaviour::Opacity** interpolates the opacity of the actors to which it has been applied between two values.

## HIERARCHY

```
  Glib::Object
  +----Clutter::Behaviour
       +----Clutter::Behaviour::Opacity
```

## METHODS

### behaviour = Clutter::Behaviour::Opacity-\>new ($alpha=undef, $opacity\_start, $opacity\_end)

- •

  `$alpha` (Clutter::Alpha or undef)

- •

  `$opacity_start` (unsigned)

- •

  `$opacity_end` (unsigned)

### (start, end) = $behaviour-\>get\_bounds

### $behaviour-\>set\_bounds ($start, $end)

- •

  `$start` (unsigned)

- •

  `$end` (unsigned)

## PROPERTIES

- 'opacity-end' (Glib::UInt : readable / writable / private)

  Final opacity level

- 'opacity-start' (Glib::UInt : readable / writable / private)

  Initial opacity level

## SEE ALSO

Clutter::Behaviour, Clutter::Alpha

## COPYRIGHT

Copyright (C) 2006, 2007, 2008  OpenedHand Ltd

Copyright (C) 2009  Intel Corporation

This module is free software; you can redistribute it and/or modify it under the terms of either:

- •

  the GNU Lesser General Public Library version 2.1; or

- •

  the Artistic License, version 2.0.

See Clutter for the full copyright notice.
