UNPKG
colorjs.io
Version:
alpha (0.6.0-alpha.1)
latest (0.5.2)
0.6.0-alpha.1
0.5.2
0.5.1
0.5.0
0.4.5
0.4.4
0.4.4-patch.1
0.4.3
0.4.2
0.4.1
0.4.1-patch.1
0.4.0
0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Let’s get serious about color
colorjs.io
LeaVerou/color.js
colorjs.io
/
src
/
setAll.js
7 lines
(6 loc)
•
189 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
ColorSpace
from
"./space.js"
;
export
default
function
setAll
(
color, space, coords
) { space =
ColorSpace
.
get
(space); color.
coords
= space.
to
(color.
space
, coords);
return
color; }