Skip to content

Commit

Permalink
renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mgieseki committed Oct 21, 2024
1 parent ce9b2b3 commit 79eab3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Color.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,9 @@ static uint32_t interpolate_cmyk2rgb (const valarray<double> &cmyk) {
}
uint32_t rgb=0;
for (int i=0; i < 3; i++) {
double y = Cmyk2RgbTable::interpolate(gi0, gi1, t, 3, i, 0);
y = round(math::clip(y, 0, 255));
rgb = (rgb << 8) | int(y);
double rgb_component = Cmyk2RgbTable::interpolate(gi0, gi1, t, 3, i, 0);
rgb_component = round(math::clip(rgb_component, 0, 255));
rgb = (rgb << 8) | int(rgb_component);
}
return rgb;
}
Expand Down

0 comments on commit 79eab3f

Please sign in to comment.