Skip to content

Commit

Permalink
clamp hsl values
Browse files Browse the repository at this point in the history
  • Loading branch information
Dane Springmeyer committed Dec 14, 2012
1 parent de4f4a0 commit 71497e7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/blend.cpp
Expand Up @@ -338,14 +338,12 @@ inline void TintPixel(unsigned & r,
double h2 = tint.h0 + (h * (tint.h1 - tint.h0));
double s2 = tint.s0 + (s * (tint.s1 - tint.s0));
double l2 = tint.l0 + (l * (tint.l1 - tint.l0));
/*
if (h2 > 1) h2 = 1;
if (h2 < 0) h2 = 0;
if (s2 > 1) s2 = 1;
if (s2 < 0) s2 = 0;
if (l2 > 1) l2 = 1;
if (l2 < 0) l2 = 0;
*/
hsl2rgb(h2,s2,l2,r,g,b);
}

Expand Down

0 comments on commit 71497e7

Please sign in to comment.