gillcup.effect

Effect base & helper classes

The Effect is the base class that modify an AnimatedProperty. Animation is Effect’s most important subclass.

Each Effect can be applied to one or more properties on one or more objects. The value of these properties is then provided by the Effect’s value property.

class gillcup.Effect

Object that changes an AnimatedProperty

Effects should have a value attribute that provides a value for the property.

get_replacement()

Return an equivalent effect

When it’s sure that the effect’s value won’t change any more, this method can return a ConstantEffect to free resources.

apply_to(instance, property_name)

Apply this effect to an instance‘s AnimatedProperty

class gillcup.ConstantEffect(value)

An Effect that provides a constant value

Previous topic

gillcup.animation

Next topic

gillcup.easing

This Page