]> granicus.if.org Git - graphviz/commitdiff
fix: missing value in CIELAB lookup table
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 11 Mar 2021 04:16:26 +0000 (20:16 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 18 Mar 2021 00:08:14 +0000 (17:08 -0700)
This lookup table contains an approximation of the visible gamut of the CIELAB
color space.¹ While scaling to, e.g., Standard RGB is not linear, it is
continuous. Therefore it follows that if (L=5,a=22,b=6) is visible and
(L=5,a=22,b=8) is visible, (L=5,a=22,b=7) is also visible. This was presumably
an accidental deletion committed in pre-version-control days. Fixes #1974.

  ¹ https://en.wikipedia.org/wiki/CIELAB_color_space

CHANGELOG.md
lib/edgepaint/lab_gamut.c

index 72a823f09093522512d7ac41a6ffa2b4c5a20457..2680e81f0c3667732d34464537cb40e9b00cd631 100644 (file)
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 ### Fixed
 
 - Windows build thinks xdg-open can be used to open a web browser #1954
+- lab_gamut_data misses a value #1974
 
 ## [2.47.0] - 2021-03-15
 
index efbb8f0b614ccd194f58962a69bfe8dfec14e47d..3d98403ae1401e729387796a021f6fff4ee6c3fb 100644 (file)
@@ -2524,6 +2524,7 @@ const signed char lab_gamut_data[] = {0,0,0,
 5,22,4,
 5,22,5,
 5,22,6,
+5,22,7,
 5,22,8,
 5,23,-37,
 5,23,-36,