GradientPaint

sealed class GradientPaint(val colors: List<GradientPaint.Stop>) : Paint

A gradient Paint that transitions between a list of Stops.

Parameters

colors

at stop points

Inheritors

Constructors

Link copied to clipboard
protected constructor(color1: Color, color2: Color)

Creates a fill with a gradient between the given colors.

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

Types

Link copied to clipboard
class Stop(val color: Color, val offset: Float)

Properties

Link copied to clipboard

at stop points along the transition

Link copied to clipboard
open override val visible: Boolean

true IFF any one of colors is visible

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