Skip to content

Commit

Permalink
Update GilbertCurve.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mcychan authored Feb 6, 2025
1 parent 3c3f65c commit 215a767
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nQuantCpp/GilbertCurve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ namespace Peano
weight = abs(weight);
margin = weight < .0025 ? 12 : weight < .004 ? 8 : 6;
beta = m_nMaxColor > 8 ? m_nMaxColor > 24 ? .25f : .7f : 1;
if (weight > .02)
beta *= .5f;
if (m_nMaxColor > 64 || weight > .02)
beta *= .4f;
DITHER_MAX = weight < .01 ? (weight > .0025) ? (BYTE)25 : 16 : 9;
auto edge = m_hasAlpha ? 1 : exp(weight) + .25;
auto deviation = weight > .002 ? .25 : 1;
Expand Down

0 comments on commit 215a767

Please sign in to comment.