SweepGradientPaint

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

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(color1: Color, color2: Color, center: Point, rotation: Measure<Angle> = 0 * degrees)

Creates a conic with a gradient between the given colors.

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

Properties

Link copied to clipboard

of the cone

Link copied to clipboard

of the starting line

Inherited 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