# castle Icon

> The castle 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/castle.md?v=filled), [Outlined](https://composables.com/icons/icon-libraries/material-icons/castle.md?v=outlined), [Rounded](https://composables.com/icons/icon-libraries/material-icons/castle.md?v=rounded), [Sharp](https://composables.com/icons/icon-libraries/material-icons/castle.md?v=sharp), [Two-Tone](https://composables.com/icons/icon-libraries/material-icons/castle.md?v=twotone)
- Categories: [Maps](https://composables.com/icons/categories/maps.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/castle.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 MaterialIconsCastle: ImageVector
    get() {
        if (_MaterialIconsCastle != null) return _MaterialIconsCastle!!
        
        _MaterialIconsCastle = ImageVector.Builder(
            name = "castle",
            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 {
                group {
                    group {
                        path(
                            fill = SolidColor(Color.Black)
                        ) {
                            moveTo(21f, 9f)
                            verticalLineToRelative(2f)
                            horizontalLineToRelative(-2f)
                            verticalLineTo(3f)
                            horizontalLineToRelative(-2f)
                            verticalLineToRelative(2f)
                            horizontalLineToRelative(-2f)
                            verticalLineTo(3f)
                            horizontalLineToRelative(-2f)
                            verticalLineToRelative(2f)
                            horizontalLineToRelative(-2f)
                            verticalLineTo(3f)
                            horizontalLineTo(9f)
                            verticalLineToRelative(2f)
                            horizontalLineTo(7f)
                            verticalLineTo(3f)
                            horizontalLineTo(5f)
                            verticalLineToRelative(8f)
                            horizontalLineTo(3f)
                            verticalLineTo(9f)
                            horizontalLineTo(1f)
                            verticalLineToRelative(12f)
                            horizontalLineToRelative(9f)
                            verticalLineToRelative(-3f)
                            curveToRelative(0f, -1.1f, 0.9f, -2f, 2f, -2f)
                            reflectiveCurveToRelative(2f, 0.9f, 2f, 2f)
                            verticalLineToRelative(3f)
                            horizontalLineToRelative(9f)
                            verticalLineTo(9f)
                            horizontalLineTo(21f)
                            close()
                            moveTo(21f, 19f)
                            horizontalLineToRelative(-5f)
                            verticalLineToRelative(-1f)
                            curveToRelative(0f, -2.21f, -1.79f, -4f, -4f, -4f)
                            reflectiveCurveToRelative(-4f, 1.79f, -4f, 4f)
                            verticalLineToRelative(1f)
                            horizontalLineTo(3f)
                            verticalLineToRelative(-6f)
                            horizontalLineToRelative(4f)
                            verticalLineTo(7f)
                            horizontalLineToRelative(10f)
                            verticalLineToRelative(6f)
                            horizontalLineToRelative(4f)
                            verticalLineTo(19f)
                            close()
                        }
                    }
                    group {
                        path(
                            fill = SolidColor(Color.Black)
                        ) {
                            moveTo(9f, 9f)
                            horizontalLineTo(11f)
                            verticalLineTo(12f)
                            horizontalLineTo(9f)
                            verticalLineTo(9f)
                            close()
                        }
                    }
                    group {
                        path(
                            fill = SolidColor(Color.Black)
                        ) {
                            moveTo(13f, 9f)
                            horizontalLineTo(15f)
                            verticalLineTo(12f)
                            horizontalLineTo(13f)
                            verticalLineTo(9f)
                            close()
                        }
                    }
                }
            }
        }.build()
        
        return _MaterialIconsCastle!!
    }

private var _MaterialIconsCastle: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/castle.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="M21,9v2h-2V3h-2v2h-2V3h-2v2h-2V3H9v2H7V3H5v8H3V9H1v12h9v-3c0,-1.1 0.9,-2 2,-2s2,0.9 2,2v3h9V9H21ZM21,19h-5v-1c0,-2.21 -1.79,-4 -4,-4s-4,1.79 -4,4v1H3v-6h4V7h10v6h4V19Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M9,9H11V12H9V9Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M13,9H15V12H13V9Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-icons/castle.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><g><g><path d="M21,9v2h-2V3h-2v2h-2V3h-2v2h-2V3H9v2H7V3H5v8H3V9H1v12h9v-3c0-1.1,0.9-2,2-2s2,0.9,2,2v3h9V9H21z M21,19h-5v-1 c0-2.21-1.79-4-4-4s-4,1.79-4,4v1H3v-6h4V7h10v6h4V19z"/></g><g><rect height="3" width="2" x="9" y="9"/></g><g><rect height="3" width="2" x="13" y="9"/></g></g></g></svg>
```
