Symbol

fun Symbol(modifier: Modifier = Modifier, shape: Shape = RectangleShape, size: Dp = KoalaPlotTheme.sizes.symbol, fillBrush: Brush? = null, outlineBrush: Brush? = null, outlineStroke: Stroke = Stroke(), alpha: Float = 1.0f)

Draws a symbol with a specified shape, fill using fillBrush, and outline using outlineBrush and outlineStroke.

Parameters

fillBrush

Brush to use to fill the shape. Null will result in an unfilled symbol.

outlineBrush

Brush to use for the symbol outline. Null will result in no outline. At least one of fillBrush or outlineBrush must be non-null for the symbol to be drawn.

alpha

Opacity to be applied to the symbol, with 0 being completely transparent and 1 being completely opaque. The value must be between 0 and 1.


fun Symbol(modifier: Modifier = Modifier, shape: Shape = RectangleShape, sizeFraction: Float, fillBrush: Brush? = null, outlineBrush: Brush? = null, outlineStroke: Stroke = Stroke(), alpha: Float = 1.0f)

Draws a Symbol where size is specified as a fraction of the maximum incoming constraint dimension.