d3 color
https://github.com/xswei/d3-scale-chromatic
var color = d3.rgb("#fff")
/*
Rgb {r: 255, g: 255, b: 255, opacity: 1}
b: 255
g: 255
opacity: 1
r: 255
*/
color.toString(); // rgb(255, 255, 255)
d3 color
https://github.com/xswei/d3-scale-chromatic
var color = d3.rgb("#fff")
/*
Rgb {r: 255, g: 255, b: 255, opacity: 1}
b: 255
g: 255
opacity: 1
r: 255
*/
color.toString(); // rgb(255, 255, 255)
若有收获,就点个赞吧
0 人点赞
让时间为你证明