Class: Clutter::DesaturateEffect

Inherits:
OffscreenEffect show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from OffscreenEffect

#create_texture, #get_target_rect, #get_target_size, #paint_target, #target, #texture

Methods inherited from Effect

#queue_repaint

Methods inherited from ActorMeta

#actor, #actor=, #enabled, #enabled=, #enabled?, #name, #name=

Constructor Details

#initialize(factor) ⇒ Clutter::Effect

Creates a new Clutter::DesaturateEffect to be used with clutter_actor_add_effect()

Parameters:

  • factor (Float)

    the desaturation factor, between 0.0 and 1.0

Instance Method Details

#factorFloat

The desaturation factor, between 0.0 (no desaturation) and 1.0 (full desaturation).

Returns:

  • (Float)

    factor

#factor=(factor) ⇒ Float

The desaturation factor, between 0.0 (no desaturation) and 1.0 (full desaturation).

Parameters:

  • factor (Float)

Returns:

  • (Float)

    factor

  • (Float)

    factor