This causes the color to be null, which causes an uncaught TypeError in ColorZebra.Color.LABtoXYZ, so the remainder of the page JS does not execute.
The easy fix is to clamp color values in ColorZebra.ColorMap.normalizeLightness. But the computation for the test image is most likely slightly wrong, which should be corrected as well.
For certain page widths, the values for the last column of the test image can be just above 1:
This causes the color to be
null
, which causes an uncaught TypeError inColorZebra.Color.LABtoXYZ
, so the remainder of the page JS does not execute.The easy fix is to clamp color values in
ColorZebra.ColorMap.normalizeLightness
. But the computation for the test image is most likely slightly wrong, which should be corrected as well.