X-Git-Url: http://git.code-monkey.de/?p=embrace.git;a=blobdiff_plain;f=bin%2Fembrace;fp=bin%2Fembrace;h=fa6f5534fe6abdd438800d5661409b70950844fa;hp=f7ae62b0cf9ac72c17113b558c37a80e033e568d;hb=0f8a9c03f5838812473819e7ef2c50261e352fe7;hpb=b0551cddd6ab569d3ef743946b7a6720ae8bc9e7 diff --git a/bin/embrace b/bin/embrace index f7ae62b..fa6f553 100755 --- a/bin/embrace +++ b/bin/embrace @@ -81,10 +81,9 @@ module Embrace # 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