caf059eba760a778e252f980532bd81b19683606
RgbToHex emitted a single hex digit for channel values below 0x10 because strconv.FormatInt produces the minimal representation. This broke the fixed-width hex format, the round-trip with HexToRgb, and the hex2basicMap fast path in Rgb2basic. Format each channel with %02x, matching RgbTo256.
Description
My contributions to gookit/color: 3 commits, 1 merged PRs
82 KiB
0 Stars
1 Watchers
0 Forks
Languages
Go
100%