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

Shape

Defines a generic shape.

Source set: Common
public interface Shape

Defines a generic shape.

Functions

createOutline

Source set: Common
public fun createOutline(
        size: Size,
        layoutDirection: LayoutDirection,
        density: Density,
    ): Outline

Creates Outline of this shape for the given size.

Parameters

size the size of the shape boundary.
layoutDirection the current layout direction.
density the current density of the screen.

Return

Outline of this shape for the given size.