Cogl.Color.init_from_hsl

function init_from_hsl(hue: Number(gfloat), saturation: Number(gfloat), luminance: Number(gfloat)): Cogl.Color {
    // Gjs wrapper for cogl_color_init_from_hsl()
}
  

Converts a color expressed in HLS (hue, luminance and saturation) values into a Cogl.Color.

Since 1.16

hue

hue value, in the 0 .. 360 range

saturation

saturation value, in the 0 .. 1 range

luminance

luminance value, in the 0 .. 1 range

Returns

return location for a Cogl.Color