Skip to content

Commit 4910eef

Browse files
authored
Merge pull request #51 from DidierRLopes/fix-generic-blend-text
Fix generic blend text
2 parents 178c562 + 0e237ec commit 4910eef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rich_cli/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def blend_text(
155155
size = len(text)
156156
for index in range(size):
157157
blend = index / size
158-
color = f"#{int(r1 + dr * blend):2X}{int(g1 + dg * blend):2X}{int(b1 + db * blend):2X}"
158+
color = f"#{int(r1 + dr * blend):02X}{int(g1 + dg * blend):02X}{int(b1 + db * blend):02X}"
159159
text.stylize(color, index, index + 1)
160160
return text
161161

0 commit comments

Comments
 (0)