From 2b1727f67e6c708cc9b66ac32af9147cad3f0580 Mon Sep 17 00:00:00 2001 From: christian-bromann Date: Thu, 5 Jul 2018 18:57:07 +0200 Subject: [PATCH] remove alpha limiter --- index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/index.js b/index.js index 202e7c2..124b3c4 100644 --- a/index.js +++ b/index.js @@ -46,11 +46,6 @@ var rgb2hex = module.exports = function rgb2hex(color) { alpha = parseFloat('0' + alpha); } - // limit alpha value to 1 - if(alpha > 1) { - alpha = 1; - } - // cut alpha value after 2 digits after comma alpha = parseFloat(Math.round(alpha * 100)) / 100;