Method

CoglColorto_hsl

Declaration [src]

void
cogl_color_to_hsl (
  const CoglColor* color,
  float* hue,
  float* saturation,
  float* luminance
)

Description [src]

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.

Available since:1.16

Parameters

hue float*
 

Return location for the hue value or NULL.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
saturation float*
 

Return location for the saturation value or NULL.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.
luminance float*
 

Return location for the luminance value or NULL.

 The argument will be set by the function.
 The instance takes ownership of the data, and is responsible for freeing it.