UNPKG
duckengine
Version:
latest (2.1.0)
2.1.0
2.0.1
2.0.0
1.2.1
1.2.0
1.1.2-beta
1.1.1-beta
1.1.0
1.1.0-beta
1.0.1
1.0.1-beta
1.0.0
1.0.0-beta
A 2D Game Engine for the web.
github.com/ksplatdev/DuckEngine
ksplatdev/DuckEngine
duckengine
/
src
/
helper
/
color
/
getValuesHSL.ts
10 lines
(8 loc)
•
191 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
export
default
function
getValuesHSL
(
hsl
:
string
):
string
[] {
let
res = hsl .
substring
(
4
, hsl.
length
-
1
) .
replace
(
/ /g
,
''
) .
replace
(
/%/g
,
''
) .
split
(
','
);
return
res; }