fillCircleGradient

fun Canvas.fillCircleGradient(cx: Int, cy: Int, radius: Float, inner: Color, outer: Color)

Draws a filled circle with a radial gradient on the canvas.

Parameters

cx

The X coordinate of the circle center

cy

The Y coordinate of the circle center

radius

The radius of the circle

inner

The inner color of the gradient

outer

The outer color of the gradient