UNPKG
color2color
Version:
latest (0.2.0)
0.2.0
0.1.0
change one color format to another.
github.com/katsew/color2color
katsew/color2color
color2color
/
test
/
hsv2rgb.spec.js
13 lines
(8 loc)
•
261 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
const
hsv2rgb =
require
(
'..'
).
hsv2rgb
;
const
expect =
require
(
'chai'
).
expect
;
describe
(
'Convert HSV (HSB) to RGB'
,
() =>
{
it
(
'input h, s, v return [r, g, b]'
,
() =>
{
expect
(
hsv2rgb
(
90
,
0.1
,
0.3
)).
to
.
deep
.
equal
([
73
,
77
,
69
]); }); });