LineStyle

data class LineStyle(val brush: Brush, val strokeWidth: Dp = 0.dp, val pathEffect: PathEffect? = null, val alpha: Float = 1.0f, val colorFilter: ColorFilter? = null, val blendMode: BlendMode = DrawScope.DefaultBlendMode)

Provides styling for lines.

brush - the color or fill to be applied to the line strokeWidth - stroke width to apply to the line pathEffect - optional effect or pattern to apply to the line alpha - opacity to be applied to the brush from 0.0f to 1.0f representing fully transparent to fully opaque respectively colorFilter - ColorFilter to apply to the brush when drawn into the destination blendMode - the blending algorithm to apply to the brush

Constructors

Link copied to clipboard
constructor(brush: Brush, strokeWidth: Dp = 0.dp, pathEffect: PathEffect? = null, alpha: Float = 1.0f, colorFilter: ColorFilter? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode)

Properties

Link copied to clipboard
val alpha: Float = 1.0f
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pathEffect: PathEffect? = null
Link copied to clipboard