Commits

Arne Babenhauserheide  committed 6257e7a

white background.

  • Participants
  • Parent commits 7a1e51b

Comments (0)

Files changed (1)

File fungus_advection.py

 
 from fungus_core import Sprite
 from pyglet.window import key
+from pyglet import gl
 
 # display
 from fungus_scene import BaseScene
         """Initialize the scene with a core object for basic functions."""
         super(Scene, self).__init__(core, *args, **kwds)
 
+        # set the background color to white
+        gl.glClearColor(255, 255, 255, 0)
+
         # and the simulated blobs along with additional synthesizers for new blobs
         self.blobs, self.synth, self.velocity_matrizes = setup(picklepath=None, #"datafile-tmp.pickle",
                                                                num=30, 
         
         # synchronize positions
         for i in range(len(self.blobs)):
-            self.visible[i].x = self.blobs[i].z# + self.blobs[i].x*0.707
+            self.visible[i].x = self.blobs[i].x# + self.blobs[i].x*0.707
             self.visible[i].y = self.blobs[i].y
             #self.visible[i].scale = 100/self.blobs[i].x