🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

drawOutline

Draws the Outline on a DrawScope.

drawOutline

Source set: Common
public fun DrawScope.drawOutline(
    outline: Outline,
    color: Color,
    @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f,
    style: DrawStyle = Fill,
    colorFilter: ColorFilter? = null,
    blendMode: BlendMode = DrawScope.DefaultBlendMode,
): Unit

Draws the Outline on a DrawScope.

Parameters

outline the outline to draw.
color Color applied to the outline when it is drawn
alpha Opacity to be applied to outline from 0.0f to 1.0f representing fully transparent to fully opaque respectively
style Specifies whether the outline 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 outline

drawOutline

Source set: Common
public fun DrawScope.drawOutline(
    outline: Outline,
    brush: Brush,
    @FloatRange(from = 0.0, to = 1.0) alpha: Float = 1.0f,
    style: DrawStyle = Fill,
    colorFilter: ColorFilter? = null,
    blendMode: BlendMode = DrawScope.DefaultBlendMode,
): Unit

Draws the Outline on a DrawScope.

Parameters

outline the outline to draw.
brush Brush applied to the outline when it is drawn
alpha Opacity to be applied to outline from 0.0f to 1.0f representing fully transparent to fully opaque respectively
style Specifies whether the outline is stroked or filled in
colorFilter: ColorFilter to apply to the Brush when drawn into the destination
blendMode: Blending algorithm to be applied to the outline

drawOutline

Source set: Common
public fun Canvas.drawOutline(outline: Outline, paint: Paint): Unit

Draws the Outline on a Canvas.

Parameters

outline the outline to draw.
paint the paint used for the drawing.