Skip to content

Commit b35f38e

Browse files
authored
Add files via upload
1 parent affc5fe commit b35f38e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nQuant.Master/GilbertCurve.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ private int DitherPixel(int x, int y, Color c2, float beta)
189189
}
190190

191191
if (!sortedByYDiff && palette.Length > 32 && (palette.Length <= 64 || weight >= .02) && CIELABConvertor.Y_Diff(pixel, c2) > margin - 1)
192-
c2 = BlueNoise.Diffuse(c2, palette[qPixelIndex], beta * NormalDistribution(beta, palette.Length / 128f) * saliencies[bidx], strength, x, y);
192+
c2 = BlueNoise.Diffuse(pixel, palette[qPixelIndex], beta * NormalDistribution(beta, palette.Length / 128f) * saliencies[bidx], strength, x, y);
193193
if (beta > 1f && CIELABConvertor.Y_Diff(pixel, c2) > DITHER_MAX)
194194
c2 = Color.FromArgb(a_pix, r_pix, g_pix, b_pix);
195195

0 commit comments

Comments
 (0)