Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Make any text fabulous by coloring the letters with rainbow colors
ResourceFunction["RainbowText"]["string"] displays string in the colors of the rainbow. | |
ResourceFunction["RainbowText"]["string", brightness] uses the specified brightness. |
Display some text in rainbow colors:
In[1]:= | ![]() |
Out[1]= | ![]() |
By changing the brightness argument, you can make your text darker or brighter:
In[2]:= | ![]() |
Out[2]= | ![]() |
In[3]:= | ![]() |
Out[3]= | ![]() |
Because the output is not a string, it will not automatically wrap at correct word breaks to fit the page, but instead may break anywhere within a word:
In[4]:= | ![]() |
Out[4]= | ![]() |
To work around this, one can simply insert their own line breaks as needed:
In[5]:= | ![]() |
Out[5]= | ![]() |
In honor of June:
In[6]:= | ![]() |
Out[6]= | ![]() |
In honor of the biblical creation story of rainbows:
In[7]:= | ![]() |
Out[7]= | ![]() |
Rainbow-colored science is fun!
In[8]:= | ![]() |
Out[8]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License