1al_color_distance_ciede2000_lab(3)          al_color_distance_ciede2000_lab(3)
2
3
4

NAME

6       al_color_distance_ciede2000_lab - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_color.h>
10

DESCRIPTION

12       This  function  computes the CIEDE2000 color difference between two RGB
13       colors.  This is a visually uniform color difference, unlike for  exam‐
14       ple the RGB distance.
15
16       When  using  the  RGB  distance  (Euklidean  distance  between  two RGB
17       triplets) there can be color pairs with the same  distance,  where  the
18       colors of one pair appear to be almost the same color, while the colors
19       of the other pair look quite different.  This is improved by using  the
20       L*a*b*  color  space  which  was designed with perceptual uniformity in
21       mind.  However it still is not completely uniform.  The CIEDE2000  for‐
22       mula contains some additional transformations to fix that.
23
24       The returned color distance is roughly in the range 0 (identical color)
25       to 1 (completely different color) - but values  greater  than  one  are
26       possible.
27
28              Note:  This  function  uses al_color_lab(3) internally which de‐
29              fines the L component to be in the range 0..1 (and not 0..100 as
30              is sometimes seen).
31

SINCE

33       5.2.3
34
35
36
37Allegro reference manual                    al_color_distance_ciede2000_lab(3)
Impressum