LinearGradientPaint

class LinearGradientPaint(val colors: List<GradientPaint.Stop>, val start: Point, val end: Point) : GradientPaint

A linear gradient Paint that transitions between a list of Stops.

Created by Nicholas Eddy on 11/5/18.

Parameters

colors

at stop points

start

of the line along which the gradient flows

end

of the line along which the gradient flows

Constructors

Link copied to clipboard
constructor(color1: Color, color2: Color, start: Point, end: Point)

Creates a fill with a gradient between the given colors.

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

Properties

Link copied to clipboard
val end: Point

of the line along which the gradient flows

Link copied to clipboard

of the line along which the gradient flows

Link copied to clipboard
open override val visible: Boolean

true IFF super visible and start != end

Inherited properties

Link copied to clipboard

at stop points along the transition

Inherited functions

Link copied to clipboard
operator fun Paint?.invoke(target: Target = Foreground, text: () -> StyledText): StyledText
operator fun Paint?.invoke(text: String, target: Target = Foreground): StyledText