FractionBasedBorderPainter

class FractionBasedBorderPainter(colorQueryStops: ColorQueryStop, displayName: String) : FractionBasedPainter, AuroraBorderPainter

Border painter with fraction-based stops and a color query associated with each stop. This class allows creating multi-gradient borders with exact control over which color is used at every gradient control point.

Author

Kirill Grouchnikov

Constructors

Link copied to clipboard
fun FractionBasedBorderPainter(vararg colorQueryStops: ColorQueryStop, displayName: String)

Functions

Link copied to clipboard
fun getColorQueries(): Array<(AuroraColorScheme) -> Color>

Returns the color queries of this painter.

Link copied to clipboard
fun getFractions(): FloatArray

Returns the fractions of this painter.

Link copied to clipboard
open override fun getRepresentativeColor(borderScheme: AuroraColorScheme): Color
Link copied to clipboard
open override fun paintBorder(drawScope: DrawScope, size: Size, outline: Outline, outlineInner: Outline?, borderScheme: AuroraColorScheme, alpha: Float)

Properties

Link copied to clipboard
open override val displayName: String

The display name of this trait.

Link copied to clipboard
open override val isPaintingInnerOutline: Boolean