Skip to content

Instantly share code, notes, and snippets.

@brainopia
Created July 25, 2008 12:32
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 brainopia/2431 to your computer and use it in GitHub Desktop.
Save brainopia/2431 to your computer and use it in GitHub Desktop.
unexpected behavior of background method (_why fixed this already)
Shoes.app :width => 600, :height => 400 do
flow :width => 400, :height => 400, :margin => 20 do
background white
fill '#dfd'
stroke '#ddd'
rect 0, 0, 200, 200
end
background black
end
# works as expected: draws a window with a black background, then a white flow with a rectangle on top of it
Shoes.app :width => 600, :height => 400 do
flow :width => 400, :height => 400, :margin => 20 do
fill '#dfd'
stroke '#ddd'
rect 0, 0, 200, 200
background white
end
background black
end
# in this case draws a window with a black background, then a white flow WITHOUT any sign of the rectangle!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment