Hi Etienne,
How about this one?
Shoes.app :width => 200, :height => 200, :resizable => false do
@slot = flow :width => 100, :height => 100
animate(24){|i| @slot.background rgb(i, i, 0)}
end
Hope it helps,
ashbb
On Thu, Dec 11, 2008 at 9: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
>