Created
March 16, 2009 22:20
-
-
Save toothrot/80129 to your computer and use it in GitHub Desktop.
#try to name the colors of the words!
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
#try to name the colors of the words! | |
Shoes.app do | |
colors = ['red','green','blue','yellow','purple'] | |
@box = stack | |
every(5) do | |
@box.clear | |
5.times do | |
this = colors[rand(colors.length)] | |
other = (colors - [this])[rand(colors.length - 1)] | |
@box.append do | |
title this, :stroke => self.send(other.to_sym), :align => 'center' | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment