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

Code

Canvas

Output