brainopia (owner)

Revisions

gist: 2431 Download_button fork
public
Description:
unexpected behavior of background method (_why fixed this already)
Public Clone URL: git://gist.github.com/2431.git
Text
1
2
3
4
5
6
7
8
9
10
11
12
13
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
Text
1
2
3
4
5
6
7
8
9
10
11
12
13
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!