radialGradient

fun radialGradient(gradient: Gradient, center: Point, radius: Float, tileMode: Shader.TileMode = Shader.TileMode.CLAMP): Shading

A radial gradient given the center and radius.

Parameters

gradient

The colors and positions of the gradient

center

The center of the radius

radius

Must be positive. The radius of the circle for this gradient

tileMode

The tiling mode