verticalGradient

fun verticalGradient(vararg colors: Int): ShaderProvider

Creates a ShaderProvider that produces a vertical gradient.


fun verticalGradient(colors: IntArray, positions: FloatArray? = null): ShaderProvider

Creates a ShaderProvider that produces a vertical gradient. positions specifies the color-stop offsets (between 0 and 1), with null giving an even distribution.