SweepGradientPaint

class SweepGradientPaint(colors: List<GradientPaint.Stop>, val center: Point, val rotation: Measure<Angle> = 0 * degrees) : GradientPaint(source)

A Paint based on sweeping a "line" around a center point, through a series of Stops to form what looks like a cone.

Parameters

colors

at stop angles

center

of the cone

rotation

of the starting line

Constructors

Link copied to clipboard
constructor(colors: List<GradientPaint.Stop>, center: Point, rotation: Measure<Angle> = 0 * degrees)
constructor(color1: Color, color2: Color, center: Point, rotation: Measure<Angle> = 0 * degrees)

Creates a conic with a gradient between the given colors.

Properties

Link copied to clipboard

of the cone

Link copied to clipboard

at stop points along the transition

Link copied to clipboard

of the starting line

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.