We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 178c562 + 0e237ec commit 4910eefCopy full SHA for 4910eef
src/rich_cli/__main__.py
@@ -155,7 +155,7 @@ def blend_text(
155
size = len(text)
156
for index in range(size):
157
blend = index / size
158
- color = f"#{int(r1 + dr * blend):2X}{int(g1 + dg * blend):2X}{int(b1 + db * blend):2X}"
+ color = f"#{int(r1 + dr * blend):02X}{int(g1 + dg * blend):02X}{int(b1 + db * blend):02X}"
159
text.stylize(color, index, index + 1)
160
return text
161
0 commit comments