We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a80bd51 commit 73ea4a5Copy full SHA for 73ea4a5
1 file changed
nQuant.Master/GilbertCurve.cs
@@ -73,7 +73,7 @@ private GilbertCurve(int width, int height, int[] pixels, Color[] palette, int[]
73
errorq = new();
74
this.weight = Math.Abs(weight);
75
margin = weight < .0025 ? 12 : weight < .004 ? 8 : 6;
76
- sortedByYDiff = saliencies != null && palette.Length >= 128 && weight < .08 && weight >= .02 && (!m_hasAlpha || weight < .18);
+ sortedByYDiff = saliencies != null && palette.Length >= 128 && weight >= .02 && (!m_hasAlpha || weight < .18);
77
beta = palette.Length > 4 ? (float) (.6f - .00625f * palette.Length) : 1;
78
if (palette.Length > 4) {
79
var boundary = .005 - .0000625 * palette.Length;
0 commit comments