### Class

# Gegl Color

since: 0.4

#### Description

    class Gegl.Color : GObject.Object
    {
      priv: GeglColorPrivate*
    }

No description available.

Available since: 0.4

#### Hierarchy

#### Ancestors

- GObject

#### Constructors

###### gegl_color_new

Creates a new `GeglColor`.

since: 0.4

#### Instance methods

###### gegl_color_duplicate

Creates a copy of `color`.

since: 0.4

###### gegl_color_get_bytes

No description available.

since: 0.4

###### gegl_color_get_cmyk

Retrieves the current set color stored as `space`. If `space` is `NULL`, this is equivalent to requesting color in the default naive CMYK space.

since: 0.4

###### gegl_color_get_components

Get the component values of the color in `format`.

since: 0.4

###### gegl_color_get_format

No description available.

since: 0.4

###### gegl_color_get_pixel

Store the color in a pixel in the given format.

since: 0.4

###### gegl_color_get_rgba

Retrieves the current set color as linear light non premultipled RGBA data, any of the return pointers can be omitted.

since: 0.4

###### gegl_color_get_rgba_with_space

Retrieves the current set color stored as `space`. If `space` is `NULL`, this is equivalent to requesting color in sRGB.

since: 0.4

###### gegl_color_set_bytes

Set a GeglColor from a pixel stored in a %GBytes and it’s babl format.

since: 0.4

###### gegl_color_set_cmyk

Set color as CMYK data stored as `space`. If `space` is `NULL`, this is equivalent to storing with the default naive CMYK space.

since: 0.4

###### gegl_color_set_components

Set the color using the component values as `format`.

since: 0.4

###### gegl_color_set_pixel

Set a GeglColor from a pointer to a pixel and it’s babl format.

since: 0.4

###### gegl_color_set_rgba

Set color as linear light non premultipled RGBA data.

since: 0.4

###### gegl_color_set_rgba_with_space

Set color as RGBA data stored as `space`. If `space` is `NULL`, this is equivalent to storing as sRGB.

since: 0.4

##### Methods inherited from GObject (43)

Please see GObject for a full list of methods.

#### Properties

###### Gegl.Color:string

No description available.

since: 0.4

#### Signals

##### Signals inherited from GObject (1)

###### GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

unstable since: 2.0

#### Class structure

    struct GeglColorClass {
      GObjectClass parent_class;

    }

No description available.

###### Class members

`parent_class: GObjectClass`
  No description available.