Material.get_color

Material.get_color()[source]

Get the RGBA color array of the material.

Returns:
Color

Color of the material.

Examples

>>> material = Material("aqua")
>>> color = material.get_color()
>>> print(color)
Color(red=0.0, green=1.0, blue=1.0, alpha=1.0)