Cogl.Color.prototype.init_from_4ub

function init_from_4ub(red: Number(guint8), green: Number(guint8), blue: Number(guint8), alpha: Number(guint8)): void {
    // Gjs wrapper for cogl_color_init_from_4ub()
}
  

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

Since 1.4

red

value of the red channel, between 0 and 255

green

value of the green channel, between 0 and 255

blue

value of the blue channel, between 0 and 255

alpha

value of the alpha channel, between 0 and 255