makeRadialGradient

fun makeRadialGradient(center: Point, radius: Float, gradient: Gradient, localMatrix: Matrix33? = null): Shader

Returns a shader that generates a radial gradient given the center and radius.

Parameters

center

The center of the circle for this gradient

radius

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

gradient

Description of the colors and interpolation method

localMatrix

Optional local matrix, may be null


fun makeRadialGradient(x: Float, y: Float, radius: Float, gradient: Gradient, localMatrix: Matrix33? = null): Shader