Gimp.color_is_perceptually_identical

@accepts(Gegl.Color, Gegl.Color)
@returns(bool)
def color_is_perceptually_identical(color1, color2):
    # Python wrapper for gimp_color_is_perceptually_identical()
  

Determine whether color1 and color2 can be considered identical to the human eyes, by computing the distance in a color space as perceptually uniform as possible.

This function will also consider any transparency channel, so that if you only want to compare the pure color, you could for instance set both color's alpha channel to 1.0 first (possibly on duplicates of the colors if originals should not be modified), such as:

```C gimp_color_set_alpha (color1, 1.0); gimp_color_set_alpha (color2, 1.0); if (gimp_color_is_perceptually_identical (color1, color2)) { printf ("Both colors are identical, ignoring their alpha component"); } ```

Since 3.0

color1

a [class@Gegl.Color]

color2

a [class@Gegl.Color]

Returns