RadialGradientPaint

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

Parameters

colors

at stop points

start

circle from which the gradient flows

end

circle that the gradient stops at

Constructors

Link copied to clipboard
constructor(colors: List<GradientPaint.Stop>, start: Circle, end: Circle)
constructor(color1: Color, color2: Color, start: Circle, end: Circle)

Creates a fill with a gradient between the given colors.

Properties

Link copied to clipboard

at stop points along the transition

Link copied to clipboard
val end: Circle

circle that the gradient stops at

Link copied to clipboard

circle from which the gradient flows

Link copied to clipboard

Creates a new Stroke with defaults from the given Paint.

Link copied to clipboard
open override val visible: Boolean

true IFF any one of colors is visible

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun Paint?.invoke(target: Target = Foreground, text: () -> AnnotatedString): AnnotatedString
@JvmName(name = "invokeString")
operator fun Paint?.invoke(target: Target = Foreground, text: () -> String): AnnotatedString
Link copied to clipboard
fun Paint.stroke(thickness: Double): Stroke

Creates a new Stroke with thickness from the given Paint.