Material
- class compas.robots.Material(name=None, color=None, texture=None)[source]
Bases:
Data
Material description.
- Parameters
Examples
>>> c = Color('1 0 0') >>> material = Material('wood', c)
>>> material = Material('aqua') >>> material.get_color() (0.0, 1.0, 1.0, 1.0)
Methods
Get the RGBA color array of the material.
Inherited Methods
Make an independent copy of the data object.
Construct an object of this type from the provided data.
Construct an object from serialized data contained in a JSON file.
Construct an object from serialized data contained in a JSON string.
Convert an object to its native data representation.
Serialize the data representation of an object to a JSON file.
Serialize the data representation of an object to a JSON string.
Validate the object's data against its data schema.
Validate the object's data against its json schema.