Skip to content

Instantly share code, notes, and snippets.

@toothrot
Created March 16, 2009 22:20
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/80129 to your computer and use it in GitHub Desktop.
Save toothrot/80129 to your computer and use it in GitHub Desktop.
#try to name the colors of the words!
#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