Replacement for Graphics.beginGradientFill(type=GradientType.LINEAR)

Code

Canvas

Output