art icon indicating copy to clipboard operation
art copied to clipboard

Fix error in alpha hex value calculation

Open danielwinkler opened this issue 6 years ago • 0 comments

The current logic length == 1 ? a + a : a; is wrong, it should be length == 1 ? '0' + a : a;

This PR fixes this problem and simplifies the toHex logic

danielwinkler avatar Dec 05 '19 12:12 danielwinkler