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

setOutline

Configures an outline for this GraphicsLayer based on the provided Outline object.

setOutline

Source set: Common
public fun GraphicsLayer.setOutline(outline: Outline)

Configures an outline for this GraphicsLayer based on the provided Outline object.

When GraphicsLayer.shadowElevation is non-zero a shadow is produced using a provided Outline. Additionally if GraphicsLayer.clip is true, the contents of this GraphicsLayer will be clipped to this geometry.

Parameters

outline an Outline to apply for the layer.