Cogl.Color.prototype.init_from_4f
function init_from_4f(red: Number(gfloat), green: Number(gfloat), blue: Number(gfloat), alpha: Number(gfloat)): void { // Gjs wrapper for cogl_color_init_from_4f() }
Sets the values of the passed channels into a Cogl.Color
Since 1.4
- 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