Gradient
Opened this issue · 1 comments
irxv commented
Make a 3 color gradient algorithm.
gbaptista commented
It already supports any number of colors you may want to use:
echo Reflection, refraction and dispersion. | \
supernova gradient \
'#FF0000' '#FFFF00' '#00FF00'
print(supernova.gradient(
'Reflection, refraction and dispersion.',
{ '#FF0000', '#FFFF00', '#00FF00' }
))
(print (supernova.gradient
"Reflection, refraction and dispersion."
["#FF0000" "#FFFF00" "#00FF00"]))