recolor
recolor this color to the target color, with the given animation type and duration.
make sure to check if the color is a gradient, as this method may not have the expected result!
Parameters
animation
animation to use. if it is null, the color will be set to the target color immediately.