Unlike the previous methods, asking for a color is not a straightforward action. How do you describe a color? Shoes provides a number of named colors, but users can't be expected to know these. To solve this problem, the ask_color method displays a color selection dialog. Again, be sure to store the color returned in a variable for future use.
Shoes.app :width => 200, :height => 80 do
button "Change Color" do
color = ask_color("What color?")
background color
end
end


