Commit graph

2 commits

Author SHA1 Message Date
Jakob Hain
31d4d5e3cf
round r,g,b values in 16-million color support
Currently if you pass decimal values to rgb or bgRgb, it will generate output with those decimals, which iTerm silently ignores.

Not sure if this is the ideal fix, since when rgb values are from 0-255 it's *commonly* assumed that they're integers. Maybe chalk should just throw an error instead. But this is a bug I came across when converting from 0-1 r,g,b, which is common, so there should be at least some indication.
2022-03-17 17:06:52 -04:00
Sindre Sorhus
04fdbd6d8d Bundle dependencies 2021-11-26 16:34:27 +07:00