Textualize / rich-cli

Rich-cli is a command line toolbox for fancy output in the terminal
https://www.textualize.io
MIT License
2.99k stars 77 forks source link

Fix generic blend text #51

Closed DidierRLopes closed 2 years ago

DidierRLopes commented 2 years ago

:2X doesn't keep leading zeros, which means that if value was too close to 0, instead of having 00 we would have ` or instead of having08we would have 8`. This makes it so that the HEX code is incorrect.

This is minimal but was causing me troubles since my first color to blend has red 0. So hopefully it won't happen to anyone else 😄

Screenshot 2022-05-12 at 12 03 32
willmcgugan commented 2 years ago

Danke

tusharsadhwani commented 2 years ago

good call! python's string formatting needs a playground like what regex people have with regex101.com

maybe I'll build one of those *adds idea to pile of project ideas*

DidierRLopes commented 2 years ago

good call! python's string formatting needs a playground like what regex people have with regex101.com

maybe I'll build one of those adds idea to pile of project ideas

Interactive python is my playground for simple string formatting stuff 😄

Screenshot 2022-05-12 at 13 49 39