verticalGradient

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

A gradient running top to bottom down the full height of what it decorates.

Return

the gradient brush.

Parameters

colorStops

where each color sits along the gradient, as a fraction of the height from 0f to 1f; at least one stop is required.

See also