Function

Gtkrgb_to_hsv

since: 2.14

Declaration [src]

void
gtk_rgb_to_hsv (
  gdouble r,
  gdouble g,
  gdouble b,
  gdouble* h,
  gdouble* s,
  gdouble* v
)

Description [src]

Converts a color from RGB space to HSV.

Input values must be in the [0.0, 1.0] range; output values will be in the same range.

Available since: 2.14

Parameters

r

Type: gdouble

Red.

g

Type: gdouble

Green.

b

Type: gdouble

Blue.

h

Type: gdouble*

Return value for the hue component.

The argument will be set by the function.
s

Type: gdouble*

Return value for the saturation component.

The argument will be set by the function.
v

Type: gdouble*

Return value for the value component.

The argument will be set by the function.