# pentagon Icon

> The pentagon icon from Material as Compose ImageVector Kotlin code, Android Vector Drawable XML and SVG.

- Library: [Material Icons](https://composables.com/icons/icon-libraries/material-icons.md)
- License: Apache 2.0 (full text in the [Material Icons library page](https://composables.com/icons/icon-libraries/material-icons.md))
- Styles: [Filled](https://composables.com/icons/icon-libraries/material-icons/pentagon.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/pentagon.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/pentagon.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/pentagon.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/pentagon.md?v=twotone)
- Categories: [Editor](https://composables.com/icons/categories/editor.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/pentagon.kt`

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.group
import androidx.compose.ui.graphics.vector.path
import androidx.compose.ui.unit.dp

val MaterialIconsPentagon: ImageVector
    get() {
        if (_MaterialIconsPentagon != null) return _MaterialIconsPentagon!!
        
        _MaterialIconsPentagon = ImageVector.Builder(
            name = "pentagon",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            group {
                path(
                    fill = SolidColor(Color.Transparent)
                ) {
                    moveTo(0f, 0f)
                    horizontalLineTo(24f)
                    verticalLineTo(24f)
                    horizontalLineTo(0f)
                    verticalLineTo(0f)
                    close()
                }
            }
            group {
                path(
                    fill = SolidColor(Color.Black)
                ) {
                    moveTo(19.63f, 9.78f)
                    lineTo(16.56f, 19f)
                    horizontalLineTo(7.44f)
                    lineTo(4.37f, 9.78f)
                    lineTo(12f, 4.44f)
                    lineTo(19.63f, 9.78f)
                    close()
                    moveTo(2f, 9f)
                    lineToRelative(4f, 12f)
                    horizontalLineToRelative(12f)
                    lineToRelative(4f, -12f)
                    lineTo(12f, 2f)
                    lineTo(2f, 9f)
                    close()
                }
            }
        }.build()
        
        return _MaterialIconsPentagon!!
    }

private var _MaterialIconsPentagon: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/pentagon.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:pathData="M0,0H24V24H0V0Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M19.63,9.78L16.56,19H7.44L4.37,9.78L12,4.44L19.63,9.78ZM2,9l4,12h12l4,-12L12,2L2,9Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-icons/pentagon.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" viewBox="0 0 24 24" fill="currentColor"><g><rect fill="none" height="24" width="24"/></g><g><path d="M19.63,9.78L16.56,19H7.44L4.37,9.78L12,4.44L19.63,9.78z M2,9l4,12h12l4-12L12,2L2,9z"/></g></svg>
```
