---
title: "Shape"
description: "Defines a generic shape."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
interface Shape
```


Defines a generic shape.


## Functions

```kotlin
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. |


#### Returns

| | |
| --- | --- |
|  | `Outline` of this shape for the given `size`. |




