radialGradient

fun radialGradient(vararg colorStops: Pair<Float, Color>): Brush

A gradient spreading from the center of what it decorates out to the nearer edge.

Return

the gradient brush.

Parameters

colorStops

where each color sits along the radius, as a fraction from 0f at the center to 1f at the edge; at least one stop is required.

See also