with-alpha-hex
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.decimalToHexString = function (decimal) { | ||
var hex = decimal.toString(16); | ||
var hex = Math.round(decimal).toString(16); | ||
if (hex === '0') { | ||
@@ -8,0 +8,0 @@ return '00'; |
{ | ||
"name": "with-alpha-hex", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "A tiny TypeScript/JavaScript library which helps change/add alpha(opacity) of a css hexadecimal color.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
9236