Created
December 11, 2008 17:24
-
-
Save toothrot/34793 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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