# torus Icon

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

- Library: [Lucide](https://composables.com/icons/icon-libraries/lucide.md)
- License: ISC (full text in the [Lucide library page](https://composables.com/icons/icon-libraries/lucide.md))
- Categories: [Shapes](https://composables.com/icons/categories/shapes.md), [Design](https://composables.com/icons/categories/design.md), [Tools](https://composables.com/icons/categories/tools.md), [Food-beverage](https://composables.com/icons/categories/food-beverage.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/lucide/torus.kt`

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

val LucideTorus: ImageVector
    get() {
        if (_LucideTorus != null) return _LucideTorus!!
        
        _LucideTorus = ImageVector.Builder(
            name = "torus",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 2f,
                strokeLineCap = StrokeCap.Round,
                strokeLineJoin = StrokeJoin.Round
            ) {
                moveTo(15f, 11f)
                arcTo(3f, 2f, 0f, false, true, 12f, 13f)
                arcTo(3f, 2f, 0f, false, true, 9f, 11f)
                arcTo(3f, 2f, 0f, false, true, 15f, 11f)
                close()
            }
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 2f,
                strokeLineCap = StrokeCap.Round,
                strokeLineJoin = StrokeJoin.Round
            ) {
                moveTo(22f, 12.5f)
                arcTo(10f, 8.5f, 0f, false, true, 12f, 21f)
                arcTo(10f, 8.5f, 0f, false, true, 2f, 12.5f)
                arcTo(10f, 8.5f, 0f, false, true, 22f, 12.5f)
                close()
            }
        }.build()
        
        return _LucideTorus!!
    }

private var _LucideTorus: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/lucide/torus.xml`

```xml
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24">
    <path
        android:strokeColor="@android:color/black"
        android:strokeLineCap="round"
        android:strokeLineJoin="round"
        android:strokeWidth="2"
        android:pathData="M15,11A3,2 0 0,1 12,13A3,2 0 0,1 9,11A3,2 0 0,1 15,11Z" />
    <path
        android:strokeColor="@android:color/black"
        android:strokeLineCap="round"
        android:strokeLineJoin="round"
        android:strokeWidth="2"
        android:pathData="M22,12.5A10,8.5 0 0,1 12,21A10,8.5 0 0,1 2,12.5A10,8.5 0 0,1 22,12.5Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/lucide/torus.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" ><ellipse cx="12" cy="11" rx="3" ry="2" /><ellipse cx="12" cy="12.5" rx="10" ry="8.5" /></svg>
```
