Skip to content

Commit

Permalink
fix rgba alpha index
Browse files Browse the repository at this point in the history
  • Loading branch information
bpostlethwaite committed Nov 10, 2014
1 parent db6d907 commit f18a759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -68,7 +68,7 @@ module.exports = function (spec) {
index = cmap[i].index;
rgba = cmap[i].rgb;
// if user supplies their own map use theirs
if (rgba.length === 4 && rgba[4] >= 0 && rgba <= 1) continue;
if (rgba.length === 4 && rgba[3] >= 0 && rgba[3] <= 1) continue;
rgba[3] = alpha[0] + (alpha[1] - alpha[0])*index;
}

Expand Down

0 comments on commit f18a759

Please sign in to comment.