GradientPaint

protected constructor(color1: Color, color2: Color)

Creates a fill with a gradient between the given colors.

Parameters

color1

associated with the start point

color2

associated with the end point


protected constructor(colors: List<GradientPaint.Stop>)

Parameters

colors

at stop points