Skip to content

Commit

Permalink
fix(🎨): Fix alpha interpolation value (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom authored Mar 10, 2020
1 parent b3a2164 commit 8926ec2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,12 @@ const interpolateColorsRGB = (
extrapolate: Extrapolate.CLAMP
})
);
const a = round(
interpolate(animationValue, {
inputRange,
outputRange: colors.map(c => opacity(c)),
extrapolate: Extrapolate.CLAMP
})
);
const a = interpolate(animationValue, {
inputRange,
outputRange: colors.map(c => opacity(c)),
extrapolate: Extrapolate.CLAMP
});

return color(r, g, b, a);
};

Expand Down

0 comments on commit 8926ec2

Please sign in to comment.