Skip to content

Instantly share code, notes, and snippets.

@toothrot
Created December 11, 2008 17:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toothrot/34793 to your computer and use it in GitHub Desktop.
Save toothrot/34793 to your computer and use it in GitHub Desktop.
Shoes.app :width => 200, :height => 200, :resizable => false do
@slot = flow :width => 100, :height => 100 do
@b = background rgb(255, 255, 0)
animate(24) do |i|
@b.remove
@slot.prepend { @b = background rgb(i,i,0) }
# or ... @b.rgb(i,i,0) ... to avoid creating new background objects?
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment