Cogl.Color.prototype.set_alpha_float

function set_alpha_float(alpha: Number(gfloat)): void {
    // Gjs wrapper for cogl_color_set_alpha_float()
}
  

Sets the alpha channel of color to alpha.

Since 1.4

alpha

a float value between 0.0f and 1.0f