Table of Contents

DOGradientColor Method

Namespace
DG.Tweening

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

target Image
gradient Gradient

The gradient to use

duration float

The duration of the tween

Returns

Sequence