diff options
-rwxr-xr-x | elements/drawing.py | 2 | ||||
-rw-r--r-- | physics.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/elements/drawing.py b/elements/drawing.py index 85f5247..a537125 100755 --- a/elements/drawing.py +++ b/elements/drawing.py @@ -196,7 +196,7 @@ class draw_cairo(object): self.imagesurface = self.cairo.ImageSurface(self.cairo.FORMAT_ARGB32, self.width, self.height); self.ctx = ctx = self.cairo.Context(self.imagesurface) - ctx.set_source_rgb(1, 1, 1) # background color + ctx.set_source_rgb(0, 0, 0) # background color ctx.paint() ctx.move_to(0, 0) @@ -32,7 +32,7 @@ class PhysicsGame: self.clock = pygame.time.Clock() self.font = pygame.font.Font(None, 24) # font object self.canvas = olpcgames.ACTIVITY.canvas - + # setup tools self.tools = { "triangle": TriangleTool(self), @@ -49,17 +49,17 @@ class PhysicsGame: # set up the world (instance of Elements) self.world = elements.Elements(self.screen.get_size()) self.world.renderer.set_surface(self.screen) - + # set up static environment self.world.add.ground() - + def run(self): self.running = True while self.running: for event in pygame.event.get(): self.currentTool.handleEvents(event) # Clear Display - self.screen.fill((255,255,255)) + self.screen.fill((0,0,0)) #255 for white # Update & Draw World self.world.update() |