Filled box hides next boxes in same area
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GASP Core |
New
|
Undecided
|
Unassigned |
Bug Description
###System info###
Python version 2.7.5
Installed according to instructions for Microsoft Windows here http://
OS: Windows7 Enterprise, Service Pack 1
GASP version: python-
Pygame version: pygame-
###Description#
The script added below is run through Windows command shell by reading a script file. Issue is that two boxes that represent left and right windows in a drawing of a house are not visible. I have added a picture with printscreens of results when:
- first box is filled - (Box((20, 20), 100, 100, True, color=color.BLUE)
- first box is not filled - Box((20, 20), 100, 100, False, color=color.BLUE)
###Script#
from gasp import * # import everything from the gasp library
begin_graphics() # open the graphics canvas
Box((20, 20), 100, 100, True, color=color.BLUE) # the house
Box((55, 20), 30, 50) # the door
Box((40, 80), 20, 20) # the left window
Box((80, 80), 20, 20) # the right window
Line((20, 120), (70, 160)) # the left roof
Line((70, 160), (120, 120)) # the right roof
update_
end_graphics() # close the canvas (which would happen