How to make a gradient?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By AndrewD

I have a triangle that should shimmer from orange to gray and vice versa. How to do it?

:bust_in_silhouette: Reply From: Zylann

Assuming your triangle is 2D, you can make it white and then use the modulate property to change its color over time.

You can do that using an AnimationPlayer, or with a script that sets the property progressively. You can also use a Gradient resource to interpolate between colors.