GimpHSV

## GimpHSV GimpHSV — Definitions and Functions relating to HSV colors. |

## Synopsis

    struct              GimpHSV;
    struct              GimpHSL;
    void                gimp_hsv_set                        (GimpHSV *hsv,
                                                             gdouble hue,
                                                             gdouble saturation,
                                                             gdouble value);
    void                gimp_hsv_clamp                      (GimpHSV *hsv);
    void                gimp_hsva_set                       (GimpHSV *hsva,
                                                             gdouble hue,
                                                             gdouble saturation,
                                                             gdouble value,
                                                             gdouble alpha);
    void                gimp_hsl_set                        (GimpHSL *hsl,
                                                             gdouble h,
                                                             gdouble s,
                                                             gdouble l);
    #define             GIMP_TYPE_HSV
    #define             GIMP_TYPE_HSL

## Description

Definitions and Functions relating to HSV colors.

## Details

### struct GimpHSV

    struct GimpHSV {
      gdouble h, s, v, a;
    };

Used to keep HSV and HSVA colors. All components are in a range of [0.0..1.0].

gdouble `h`; | the hue component
gdouble `s`; | the saturation component
gdouble `v`; | the value component
gdouble `a`; | the alpha component

### struct GimpHSL

    struct GimpHSL {
      gdouble h, s, l, a;
    };

Used to keep HSL and HSLA colors. All components are in a range of [0.0..1.0].

gdouble `h`; | the hue component
gdouble `s`; | the saturation component
gdouble `l`; | the lightness component
gdouble `a`; | the alpha component

### gimp_hsv_set ()

    void                gimp_hsv_set                        (GimpHSV *hsv,
                                                             gdouble hue,
                                                             gdouble saturation,
                                                             gdouble value);

### gimp_hsv_clamp ()

    void                gimp_hsv_clamp                      (GimpHSV *hsv);

### gimp_hsva_set ()

    void                gimp_hsva_set                       (GimpHSV *hsva,
                                                             gdouble hue,
                                                             gdouble saturation,
                                                             gdouble value,
                                                             gdouble alpha);

### gimp_hsl_set ()

    void                gimp_hsl_set                        (GimpHSL *hsl,
                                                             gdouble h,
                                                             gdouble s,
                                                             gdouble l);

Since GIMP 2.8

### GIMP_TYPE_HSV

    #define GIMP_TYPE_HSV       (gimp_hsv_get_type ())

### GIMP_TYPE_HSL

    #define GIMP_TYPE_HSL       (gimp_hsl_get_type ())