UNPKG
color-convert
Version:
latest (3.1.2)
3.1.2
3.1.0
3.0.1
3.0.0
2.0.1
2.0.0
1.9.3
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.0
1.6.0
1.5.0
1.4.0
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.2
1.1.1
1.1.0
1.0.0
0.7.0
0.6.0
0.5.3
0.5.2
0.5.1
0.5.0
0.4.0
0.3.4
0.3.1
0.3.0
0.2.1
0.2.0
0.1.0
Plain color conversion functions
github.com/harthur/color-convert
harthur/color-convert
color-convert
/
test.html
10 lines
(8 loc)
•
233 B
HTML
View Raw
1
2
3
4
5
6
7
8
9
10
<
html
>
<
script
src
=
"color-convert-0.2.0.js"
>
</
script
>
<
script
>
alert
(colorConvert.
rgb2hsl
([
235
,
101
,
56
]));
alert
(colorConvert.
rgb2hslRaw
([
235
,
101
,
56
]));
alert
(colorConvert[
"rgb"
][
"hsl"
]([
235
,
101
,
56
]))
</
script
>
</
html
>