Function

Gimpcolor_is_out_of_gamut

since: 3.0

Declaration [src]

gboolean
gimp_color_is_out_of_gamut (
  GeglColor* color,
  const Babl* space
)

Description [src]

Determine whether color is out of its space gamut. A small error of margin is accepted, so that for instance a component at -0.0000001 is not making the whole color to be considered as out-of-gamut while it may just be computation imprecision.

Available since: 3.0

Parameters

color

Type: GeglColor

A GeglColor

The data is owned by the caller of the function.
space

Type: Babl

A color space to convert color to.

The data is owned by the caller of the function.

Return value

Type: gboolean

Whether the color is out of space gamut.