set_color


Description:

public void set_color (Color color)

Sets the basic color of the material, used when no lighting is enabled.

Note:

Use cogl_pipeline_set_color instead

Note that if you don't add any layers to the material then the color will be blended unmodified with the destination; the default blend expects premultiplied colors: for example, use (0.5, 0.0, 0.0, 0.5) for semi-transparent red. See premultiply.

The default value is (1.0, 1.0, 1.0, 1.0)

Parameters:

this

A CoglMaterial object

color

The components of the color