Пример #1
0
   def __init__(self, lifetime):
      BaseParticle.__init__(self, lifetime, None)

      points, texcoords = Vortex.image_strip()
      self.dream = Buffer(points)
      self.dream.loadTexCoordData(texcoords)
      self.dream.renderMode('triangles:strip')

      self.texture = get_dream()

      self.color = [1.0, 1.0, 1.0, 0.0]
Пример #2
0
   def __init__(self, lifetime, vortex):
      BaseParticle.__init__(self, lifetime, vortex)

      self.points = []
      self.coords = []

      self.history = randint(15, 30)
      self.height = uniform(0.5, 3.25)

      c = random()
      self.color = [c, c, c, 1.0]

      self.initialize()
      self.step()
Пример #3
0
   def __init__(self, lifetime, vortex):
      BaseParticle.__init__(self, lifetime, vortex)

      c = settings.get_uniform('particle-color-range')
      self.color = [c, 0.8, 0.3, 0.65]