On Thu, Dec 11, 2008 at 7:32 AM, e deleflie <[EMAIL PROTECTED]> wrote:
> Is it possible to change the colour of a background?
>
> I'm trying to animate a background ... like those yellow backgrounds
> behind changed fields you see sometimes on web pages .... starts
> yellow then fades out.
>
> this code isn't behaving as I'd imagined:
>
> Shoes.app :width => 200, :height => 200, :resizable => false do
>  flow :width => 100, :height => 100 do
>    @b = background rgb(255, 255, 0)
>    animate(24) do |i|
>      background rgb(i, i, 0)
>      # or ... @b.rgb(i,i,0) ... to avoid creating new background objects?
>    end
>  end
> end

I would also like to see background objects be more flexible.

In the meantime, perhaps you can try messing with the fill on shapes:
http://article.gmane.org/gmane.comp.lib.shoes/2513

Hey, interesting.. some old discussion about adding Background#fill=
http://article.gmane.org/gmane.comp.lib.shoes/1648

-- 
Seth Thomas Rasmussen
http://greatseth.com

Reply via email to