Skip to content

Commit

Permalink
Add comment to clarify what is happening with the opacity value.
Browse files Browse the repository at this point in the history
  • Loading branch information
GPHemsley committed Nov 21, 2012
1 parent f1ad327 commit dd434c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tiff.js
Expand Up @@ -621,6 +621,7 @@ TIFFParser.prototype = {
if (numExtraSamples > 0) {
for (var k = 0; k < numExtraSamples; k++) {
if (extraSamplesValues[k] === 1) {
// Clamp opacity to the range [0,1].
opacity = pixelSamples[3 + k] / 256;

break;
Expand Down

0 comments on commit dd434c5

Please sign in to comment.