Cogl.Color.prototype.to_hsl

function to_hsl(): [hue: Number(gfloat), saturation: Number(gfloat), luminance: Number(gfloat)] {
    // Gjs wrapper for cogl_color_to_hsl()
}
  

Converts color to the HLS format.

The hue value is in the 0 .. 360 range. The luminance and saturation values are in the 0 .. 1 range.

Since 1.16

hue

return location for the hue value or null

saturation

return location for the saturation value or null

luminance

return location for the luminance value or null