Skip to content

Commit

Permalink
Update GilbertCurve.java
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Jan 25, 2025
1 parent dfbabde commit 9d9bf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nQuant/j2se/GilbertCurve.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private void ditherPixel(int x, int y){
Color c2 = new Color(r_pix, g_pix, b_pix, a_pix);
if (saliencies != null && palette.length < 3) {
final float strength = 1 / 3f;
c2 = BlueNoise.diffuse(pixel, palette[qPixels[bidx]], strength / saliencies[bidx], strength, x, y);
c2 = BlueNoise.diffuse(pixel, palette[qPixels[bidx]], .5f / saliencies[bidx], strength, x, y);
qPixels[bidx] = ditherable.nearestColorIndex(palette, c2, bidx);
}
else if (palette.length <= 32 && a_pix > 0xF0) {
Expand Down

0 comments on commit 9d9bf29

Please sign in to comment.