Cogl.Pipeline.prototype.set_color

function set_color(color: Cogl.Color): void {
    // Gjs wrapper for cogl_pipeline_set_color()
}
  

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

Note that if you don't add any layers to the pipeline 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 Cogl.Color.prototype.premultiply.

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

Since 2.0

color

The components of the color