How to use colourGradient in graphics in juce50

Hi there…

I am using old juce50… Now i am trying to use colour gradient class in my current graphics context. I guess i can do that in the newer juce version with Graphics::setGradientFill ( ) function.
But there’s no such function in juce50.

So how can i add colourgradient in my current graphics context…

You’d need to use the old GradientBrush class.