Google is committed to advancing racial equity for Black communities. See how.

Shape

@Immutable interface Shape
androidx.compose.ui.graphics.Shape

Defines a generic shape.

Summary

Public methods
abstract Outline
createOutline(size: Size, density: Density)

Creates Outline of this shape for the given size.

Public methods

createOutline

abstract fun createOutline(
    size: Size,
    density: Density
): Outline

Creates Outline of this shape for the given size.

Parameters
size: Size the size of the shape boundary.
density: Density the current density of the screen.
Return
Outline of this shape for the given size.