Fraction Based Border Painter
class FractionBasedBorderPainter(colorQueryStops: ColorQueryStop, displayName: String) : FractionBasedPainter, AuroraBorderPainter
Content copied to clipboard
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
FractionBasedBorderPainter
Link copied to clipboard
fun FractionBasedBorderPainter(vararg colorQueryStops: ColorQueryStop, displayName: String)
Content copied to clipboard
Functions
get Color Queries
Link copied to clipboard
Returns the color queries of this painter.
get Fractions
Link copied to clipboard
Returns the fractions of this painter.
get Representative Color
Link copied to clipboard
open override fun getRepresentativeColor(borderScheme: AuroraColorScheme): Color
Content copied to clipboard
paint Border
Link copied to clipboard
open override fun paintBorder(drawScope: DrawScope, size: Size, outline: Outline, outlineInner: Outline?, borderScheme: AuroraColorScheme, alpha: Float)
Content copied to clipboard