Seth has a good suggestion. In fact, I am using two approaches depending what is easier. I either put a shape and change the fill when I need it or clear the float and fill it with a new content. Have a look at the two clasess I wrote one is using "clear" (http://the-shoebox.org/apps/94) and second - changes fill of the object (http://the-shoebox.org/apps/101).
K On Thu, Dec 11, 2008 at 12:32 PM, 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 > > Etienne >
