ShadowUnderLine

constructor(color: Color = Color.Black, brush: Brush? = null, alpha: Float = 0.1f, style: DrawStyle = Fill, colorFilter: ColorFilter? = null, blendMode: BlendMode = DrawScope.DefaultBlendMode, draw: DrawScope.(Path) -> Unit = { path -> if (brush != null) { drawPath(path, brush, alpha, style, colorFilter, blendMode) } else { drawPath(path, color, alpha, style, colorFilter, blendMode) } }, drawMultiColor: DrawScope.(Path, Color, Brush?) -> Unit = { path, multiColor, multiColorBrush -> if (multiColorBrush != null) { drawPath(path, multiColorBrush, alpha, style, colorFilter, blendMode) } else { drawPath(path, multiColor, alpha, style, colorFilter, blendMode) } })

Parameters

color

Color to be applied to the path

alpha

Opacity to be applied to the path from 0.0f to 1.0f representing fully transparent to fully opaque respectively

style

Whether or not the path is stroked or filled in

colorFilter

ColorFilter to apply to the color when drawn into the destination

blendMode

Blending algorithm to be applied to the path when it is drawn

draw

override this to change the default drawPath implementation. You are provided with the Path of the line

drawMultiColor

override this to change the default drawPath implementation. You are provided with the Path of the line, custom Color and Brush