Removing unused asString

This commit is contained in:
Conor_Mack 2020-06-17 17:50:23 +01:00
parent efb80347c6
commit 06f3c1db77
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ export const hsvaToRgba = ([h, s, v, a = 1], asString = false) => {
return asString ? `rgba(${rgba.join(",")})` : rgba
}
export const hsvaToHsla = ([h, s, v, a = 1], asString = false) => {
export const hsvaToHsla = ([h, s, v, a = 1]) => {
let [hue, sat, lum] = _hsvToHSL([h, s, v])
let hsla = [hue, sat + "%", lum + "%", a < 1 ? _fixNum(a, 2) : a]
return `hsla(${hsla.join(",")})`