Cogl.Pipeline.prototype.set_layer_combine_constant

function set_layer_combine_constant(layer_index: Number(gint), constant: Cogl.Color): void {
    // Gjs wrapper for cogl_pipeline_set_layer_combine_constant()
}
  

When you are using the 'CONSTANT' color source in a layer combine description then you can use this function to define its value.

Since 2.0

layer_index

Specifies the layer you want to specify a constant used for texture combining

constant

The constant color you want