Cogl.Pipeline.prototype.set_ambient_and_diffuse

function set_ambient_and_diffuse(color: Cogl.Color): void {
    // Gjs wrapper for cogl_pipeline_set_ambient_and_diffuse()
}
  

Conveniently sets the diffuse and ambient color of pipeline at the same time. See Cogl.Pipeline.prototype.set_ambient and Cogl.Pipeline.prototype.set_diffuse.

The default ambient color is (0.2, 0.2, 0.2, 1.0)

The default diffuse color is (0.8, 0.8, 0.8, 1.0)

Since 2.0

color

The components of the desired ambient and diffuse colors