Cogl.Color.prototype.get_alpha_float

function get_alpha_float(): Number(gfloat) {
    // Gjs wrapper for cogl_color_get_alpha_float()
}
  

Retrieves the alpha channel of color as a floating point value between 0.0 and 1.0

Since 1.0

Returns

the alpha channel of the passed color