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.
1 parent c313b66 commit 571efecCopy full SHA for 571efec
1 file changed
cfonts/colors.py
@@ -171,7 +171,7 @@ def get_gradient(
171
if transition and len(colors) < 2:
172
raise ValueError("Transition gradient needs at least two colors")
173
elif not transition and len(colors) != 2:
174
- raise ValueError("Gradient needs exactly two colors")
+ raise ValueError("Gradient, if no transition, needs exactly two colors")
175
rgb_colors = [_ensure_rgb(color) for color in colors]
176
color_steps = [(steps - 1) // (len(rgb_colors) - 1)] * (len(rgb_colors) - 1)
177
if sum(color_steps) < (steps - 1):
0 commit comments