Package Scientific :: Package Visualization :: Module VPython :: Class Material
[frames] | no frames]

Class Material

GraphicsObject --+
                 |
                Material

Material specification for graphics objects

A material defines the color and surface properties of an object.

Instance Methods
 
__init__(self, **attr)

Inherited from GraphicsObject: __copy__, __getitem__, __setitem__

Class Variables
  attribute_names = ['comment', 'ambient_color', 'diffuse_color'...
Method Details

__init__(self, **attr)
(Constructor)

 
Parameters:
  • attr - material attributes as keyword arguments
  • diffuse_color (Color) - the color of a diffusely reflecting surface
  • emissive_color (Color) - the color of emitted light
Overrides: GraphicsObject.__init__

Class Variable Details

attribute_names

Value:
['comment',
 'ambient_color',
 'diffuse_color',
 'specular_color',
 'emissive_color',
 'shininess',
 'transparency']