@alchemyalcove/hsl-to-rgb
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -19,3 +19,3 @@ "use strict"; | ||
val = l * 255; | ||
return [Math.round(val), Math.round(val), Math.round(val)]; | ||
return [val, val, val]; | ||
} | ||
@@ -51,3 +51,3 @@ | ||
rgb[i] = Math.round(val * 255); | ||
rgb[i] = val * 255; | ||
} | ||
@@ -54,0 +54,0 @@ |
@@ -1,3 +0,3 @@ | ||
var formLinker = require("./dist"); | ||
var HSLtoRGB = require("./dist"); | ||
module.exports = formLinker; | ||
module.exports = HSLtoRGB; |
{ | ||
"name": "@alchemyalcove/hsl-to-rgb", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Convert hsl to rgb", | ||
@@ -5,0 +5,0 @@ "author": "Mike Hoffert", |
@@ -13,3 +13,3 @@ export default function(hsl) { | ||
val = l * 255; | ||
return([Math.round(val), Math.round(val), Math.round(val)]); | ||
return([val, val, val]); | ||
} | ||
@@ -45,3 +45,3 @@ | ||
rgb[i] = Math.round(val * 255); | ||
rgb[i] = val * 255; | ||
} | ||
@@ -48,0 +48,0 @@ |
@@ -24,3 +24,3 @@ import Convert from "../src"; | ||
test("valid midnight blue", () => { | ||
expect(Convert([210, 29, 24])).toEqual([43, 61, 79]); | ||
expect(Convert([210, 29, 24])).toEqual([43.452, 61.19999999999998, 78.948]); | ||
}); |
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
125
5884
3