Ejemplo n.º 1
0
 def reset(self):
     '''
     Remove all materials from cache.
     '''
     for name, color in self.materials:
         ignore(color)
         destroy_material(name)
    
     self.materials = []
Ejemplo n.º 2
0
 def set_emissive_value(self, value):
     '''
     The emissive color of the object is the same as
     the diffuse color except the 'value' (of HSV) model
     is modified.
     '''
     h, s, v = self.get_hsv()
     ignore(v)
     self.emissive.set_hsv((h, s, value))