From 8bc88115ca98dab8409274aaf0b9e6fce416c20c Mon Sep 17 00:00:00 2001 From: Jehan Date: Fri, 21 Nov 2025 19:30:33 +0100 Subject: [PATCH] libgimpcolor: add some note to gimp_color_is_perceptually_identical() docs. --- libgimpcolor/gimpcolor.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libgimpcolor/gimpcolor.c b/libgimpcolor/gimpcolor.c index 78209b7bf9..9812cb051d 100644 --- a/libgimpcolor/gimpcolor.c +++ b/libgimpcolor/gimpcolor.c @@ -120,6 +120,12 @@ gimp_color_set_alpha (GeglColor *color, * } * ``` * + * Note that this relation is not transitive, because it is based on a + * color distance algorithm. It means that if color1 is perceptually + * identical to color2, which is perceptually identical to color3, it + * does not mean that color1 is perceptually identical to color3, as far + * this algorithm is concerned. + * * Returns: whether the 2 colors can be considered the same for the human eyes. * * Since: 3.0