DOGradientColor Method
DOGradientColor(Image, Gradient, float)
public static Sequence DOGradientColor(this Image target, Gradient gradient, float duration)
Tweens an Image's colors using the given gradient (NOTE 1: only uses the colors of the gradient, not the alphas - NOTE 2: creates a Sequence, not a Tweener). Also stores the image as the tween's target so it can be used for filtered operations
Parameters
targetImagegradientGradientThe gradient to use
durationfloatThe duration of the tween
Returns
- Sequence