linearGradient

fun linearGradient(gradient: Gradient, startPoint: Point, endPoint: Point, tileMode: Shader.TileMode = Shader.TileMode.CLAMP): Shading

A linear gradient that varies along the line defined by the provided starting and ending points.

Parameters

gradient

The colors and positions of the gradient

startPoint

The start of the gradient line

endPoint

The end of the gradient line

tileMode

The tiling mode