# an animator that runs for the specified number of seconds,
# and yields values between 0 and 255
class AlphaAnimator < ZeroToOneAnimator
- def initialize(duration, *objects)
+ def initialize(duration, object)
super(duration) do |v|
- a = compute_alpha(v)
- objects.each { |o| o.alpha = a }
+ object.alpha = compute_alpha(v)
end
end