rainbow
rainbow copied to clipboard
color transitions not smooth
When i compare the output of rainbow to lolcat, i notice the color transitions are less smooth. If you color a wall of text using both, you notice each one color "stripes" are separated on the rainbow output.
Hi, can you provide an example please?
Here are some screenshots: First rainbow:

now lolcat - note i'm using the rust version of lolcat here
As you can see the color transitions are much more smooth in the second image.
It may have something to do with the fact that lolcat switches the palette slower, so there's more space to present each color. But even the transitions between single shades of colors are more seamless.
Sorry for the late response. Can you try playing around with these two values and let me know what combination works best for you please? Try reducing the freq value.
Can you make the spread and freq values accessible through the public API, @arsham? Also, @deathtrip, did it work?
Apparently the issue might be related to truecolor.
@quackduck RE. accessing values is a good idea.
Re. the truecolor, can you elaborate please?
Some terminals support truecolor, which has more available colors to choose from. This might make the transitions smoother.
Through my research, I find that detecting whether the terminal supports truecolor is the hard part.