Cogl.Color.prototype.set_from_4f

function set_from_4f(red: Number(gfloat), green: Number(gfloat), blue: Number(gfloat), alpha: Number(gfloat)): void {
    // Gjs wrapper for cogl_color_set_from_4f()
}
  

Sets the values of the passed channels into a Cogl.Color

Since 1.0

red

value of the red channel, between 0 and %1.0

green

value of the green channel, between 0 and %1.0

blue

value of the blue channel, between 0 and %1.0

alpha

value of the alpha channel, between 0 and %1.0