Cogl.Color.prototype.get_red_float

function get_red_float(): Number(gfloat) {
    // Gjs wrapper for cogl_color_get_red_float()
}
  

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

Since 1.0

Returns

the red channel of the passed color