Material.get_color

Material.get_color()[source]

Get the RGBA color array of the material.

Returns

[float, float, float, float] – List of 4 floats (0.0-1.0) indicating RGB colors and Alpha channel of the material.

Examples

>>> material = Material('aqua')
>>> material.get_color()
(0.0, 1.0, 1.0, 1.0)