linear Gradient
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
start Point
The start of the gradient line
end Point
The end of the gradient line
tile Mode
The tiling mode