# bathtub Icon

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

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/material-icons/bathtub.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 MaterialIconsBathtub: ImageVector
    get() {
        if (_MaterialIconsBathtub != null) return _MaterialIconsBathtub!!
        
        _MaterialIconsBathtub = ImageVector.Builder(
            name = "bathtub",
            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 {
                    path(
                        fill = SolidColor(Color.Black)
                    ) {
                        moveTo(9f, 7f)
                        arcTo(2f, 2f, 0f, false, true, 7f, 9f)
                        arcTo(2f, 2f, 0f, false, true, 5f, 7f)
                        arcTo(2f, 2f, 0f, false, true, 9f, 7f)
                        close()
                    }
                    path(
                        fill = SolidColor(Color.Black)
                    ) {
                        moveTo(20f, 13f)
                        verticalLineTo(4.83f)
                        curveTo(20f, 3.27f, 18.73f, 2f, 17.17f, 2f)
                        curveToRelative(-0.75f, 0f, -1.47f, 0.3f, -2f, 0.83f)
                        lineToRelative(-1.25f, 1.25f)
                        curveTo(13.76f, 4.03f, 13.59f, 4f, 13.41f, 4f)
                        curveToRelative(-0.4f, 0f, -0.77f, 0.12f, -1.08f, 0.32f)
                        lineToRelative(2.76f, 2.76f)
                        curveToRelative(0.2f, -0.31f, 0.32f, -0.68f, 0.32f, -1.08f)
                        curveToRelative(0f, -0.18f, -0.03f, -0.34f, -0.07f, -0.51f)
                        lineToRelative(1.25f, -1.25f)
                        curveTo(16.74f, 4.09f, 16.95f, 4f, 17.17f, 4f)
                        curveTo(17.63f, 4f, 18f, 4.37f, 18f, 4.83f)
                        verticalLineTo(13f)
                        horizontalLineToRelative(-6.85f)
                        curveToRelative(-0.3f, -0.21f, -0.57f, -0.45f, -0.82f, -0.72f)
                        lineToRelative(-1.4f, -1.55f)
                        curveToRelative(-0.19f, -0.21f, -0.43f, -0.38f, -0.69f, -0.5f)
                        curveTo(7.93f, 10.08f, 7.59f, 10f, 7.24f, 10f)
                        curveTo(6f, 10.01f, 5f, 11.01f, 5f, 12.25f)
                        verticalLineTo(13f)
                        horizontalLineTo(2f)
                        verticalLineToRelative(6f)
                        curveToRelative(0f, 1.1f, 0.9f, 2f, 2f, 2f)
                        curveToRelative(0f, 0.55f, 0.45f, 1f, 1f, 1f)
                        horizontalLineToRelative(14f)
                        curveToRelative(0.55f, 0f, 1f, -0.45f, 1f, -1f)
                        curveToRelative(1.1f, 0f, 2f, -0.9f, 2f, -2f)
                        verticalLineToRelative(-6f)
                        horizontalLineTo(20f)
                        close()
                        moveTo(20f, 19f)
                        horizontalLineTo(4f)
                        verticalLineToRelative(-4f)
                        horizontalLineToRelative(16f)
                        verticalLineTo(19f)
                        close()
                    }
                }
            }
        }.build()
        
        return _MaterialIconsBathtub!!
    }

private var _MaterialIconsBathtub: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/material-icons/bathtub.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="M9,7A2,2 0 0,1 7,9A2,2 0 0,1 5,7A2,2 0 0,1 9,7Z" />
    <path
        android:fillColor="@android:color/black"
        android:pathData="M20,13V4.83C20,3.27 18.73,2 17.17,2c-0.75,0 -1.47,0.3 -2,0.83l-1.25,1.25C13.76,4.03 13.59,4 13.41,4c-0.4,0 -0.77,0.12 -1.08,0.32l2.76,2.76c0.2,-0.31 0.32,-0.68 0.32,-1.08c0,-0.18 -0.03,-0.34 -0.07,-0.51l1.25,-1.25C16.74,4.09 16.95,4 17.17,4C17.63,4 18,4.37 18,4.83V13h-6.85c-0.3,-0.21 -0.57,-0.45 -0.82,-0.72l-1.4,-1.55c-0.19,-0.21 -0.43,-0.38 -0.69,-0.5C7.93,10.08 7.59,10 7.24,10C6,10.01 5,11.01 5,12.25V13H2v6c0,1.1 0.9,2 2,2c0,0.55 0.45,1 1,1h14c0.55,0 1,-0.45 1,-1c1.1,0 2,-0.9 2,-2v-6H20ZM20,19H4v-4h16V19Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/material-icons/bathtub.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><circle cx="7" cy="7" r="2"/><path d="M20,13V4.83C20,3.27,18.73,2,17.17,2c-0.75,0-1.47,0.3-2,0.83l-1.25,1.25C13.76,4.03,13.59,4,13.41,4 c-0.4,0-0.77,0.12-1.08,0.32l2.76,2.76c0.2-0.31,0.32-0.68,0.32-1.08c0-0.18-0.03-0.34-0.07-0.51l1.25-1.25 C16.74,4.09,16.95,4,17.17,4C17.63,4,18,4.37,18,4.83V13h-6.85c-0.3-0.21-0.57-0.45-0.82-0.72l-1.4-1.55 c-0.19-0.21-0.43-0.38-0.69-0.5C7.93,10.08,7.59,10,7.24,10C6,10.01,5,11.01,5,12.25V13H2v6c0,1.1,0.9,2,2,2c0,0.55,0.45,1,1,1h14 c0.55,0,1-0.45,1-1c1.1,0,2-0.9,2-2v-6H20z M20,19H4v-4h16V19z"/></g></g></svg>
```
