hsl-->rgb,error is a little big
edenYfb opened this issue · comments
edenYfb commented
chromatism.convert( { h: 300, s: 100, l: 50 } ).rgb
//-->{r:253.47, g:0, b:254.49}-->Math.round()-->253,0,254
i want it can be {r:255, g:0, b:255}, after Math.round()
Josh Duff commented
Then write a round function that does that. Math.round
does not work that way.
edenYfb commented
ok, i try it