Closed edenYfb closed 5 years ago
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()
Then write a round function that does that. Math.round does not work that way.
Math.round
ok, i try it
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()