A game about forced loneliness, made by TACStudios
1# Gradient
2
3The `<gradient>` tag applies a pre-defined gradient preset to text.
4
5For more information about creating gradient presets, see the documentation on [Gradient Presets](ColorGradientsPresets.md).
6
7The closing `</gradient>` tag reverts to the TextMesh pro object's original color.
8
9**Example:**
10
11```
12Apply<b>
13<gradient="Yellow to Orange - Vertical">any
14<gradient="Light to Dark Green - Vertical">gradient
15<gradient="Blue to Purple - Vertical">preset</gradient>
16</b>to your text
17```
18
19<br/>
20_Successive gradient tags ended with a closing `</gradient>`_
21
22**Note:** When you apply a gradient using this tag, it's multiplied by the TextMesh Pro object's current vertex colors.
23
24```
25This <gradient="Light to Dark Green - Vertical">Light to Dark Green gradient</gradient> is tinted by the red vertex color
26```
27<br/>
28_Applying a green gradient to red text_
29
30To apply the pure gradient to a selection of text, you can use a `<color>` tag to "reset" the color to white before applying the gradient.
31
32```
33This <color=#FFFFFFFF><gradient="Light to Dark Green - Vertical">Light to Dark Green gradient</gradient></color> is no longer tinted by the red vertex color
34```
35<br/>
36_"Resetting" the text's vertex color before applying a gradient_