FractionBasedFillPainter

class FractionBasedFillPainter(colorQueryStops: ColorQueryStop, displayName: String) : FractionBasedPainter, AuroraFillPainter

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

Author

Kirill Grouchnikov

Constructors

Link copied to clipboard
fun FractionBasedFillPainter(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 paintContourBackground(drawScope: DrawScope, size: Size, outline: Outline, fillScheme: AuroraColorScheme, alpha: Float)

Properties

Link copied to clipboard
open override val displayName: String

The display name of this trait.