Now, the red is equidistant from both the dark and bright red - with square distance 144 - so either one is an equally valid choice for nearest match. The dark red is chosen because it's closer to the beginning of the cset.Next, the yellow: the square distance from the yellow to the bright yellow is 3^2+15^2+14^2, which is much bigger than the square distance from the yellow to the dark yellow, which is 6^2+7^2+1^2.
So despite what it may look like, mathematically speaking the matching done by ZQuest here is correct.
Thank you for explaining that. 😉
I am now quoting this for easy look-up when I forget what I just read, and start making palletes on my next project.