LinearGradientPaint

constructor(color1: Color, color2: Color, start: Point, end: Point)

Creates a fill with a gradient between the given colors.

Parameters

color1

associated with the start point

color2

associated with the end point

start

of the line along which the gradient flows

end

of the line along which the gradient flows


constructor(colors: List<GradientPaint.Stop>, start: Point, end: Point)

Parameters

colors

at stop points

start

of the line along which the gradient flows

end

of the line along which the gradient flows