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 = 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
fun LineStyle(    brush: Brush,     strokeWidth: Dp = 0.dp,     pathEffect: PathEffect? = null,     alpha: Float = 1.0f,     colorFilter: ColorFilter? = null,     blendMode: BlendMode = DefaultBlendMode)

Properties

Link copied to clipboard
val alpha: Float = 1.0f
Link copied to clipboard
val blendMode: BlendMode
Link copied to clipboard
val brush: Brush
Link copied to clipboard
val colorFilter: ColorFilter? = null
Link copied to clipboard
val pathEffect: PathEffect? = null
Link copied to clipboard
val strokeWidth: Dp