# cog Icon

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

- Library: [Heroicons](https://composables.com/icons/icon-libraries/heroicons.md)
- License: MIT (full text in the [Heroicons library page](https://composables.com/icons/icon-libraries/heroicons.md))
- Styles: [Outline](https://composables.com/icons/icon-libraries/heroicons/cog.md?v=outline), [Solid](https://composables.com/icons/icon-libraries/heroicons/cog.md?v=solid), [Mini](https://composables.com/icons/icon-libraries/heroicons/cog.md?v=mini), [Micro](https://composables.com/icons/icon-libraries/heroicons/cog.md?v=micro)

## Compose ImageVector (Kotlin)

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

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
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 HeroiconsCog: ImageVector
    get() {
        if (_HeroiconsCog != null) return _HeroiconsCog!!
        
        _HeroiconsCog = ImageVector.Builder(
            name = "cog",
            defaultWidth = 24.dp,
            defaultHeight = 24.dp,
            viewportWidth = 24f,
            viewportHeight = 24f
        ).apply {
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 1.5f,
                strokeLineJoin = StrokeJoin.Miter
            ) {
                moveTo(4.5f, 12f)
                arcToRelative(7.5f, 7.5f, 0f, false, false, 15f, 0f)
                moveToRelative(-15f, 0f)
                arcToRelative(7.5f, 7.5f, 0f, true, true, 15f, 0f)
                moveToRelative(-15f, 0f)
                horizontalLineTo(3f)
                moveToRelative(16.5f, 0f)
                horizontalLineTo(21f)
                moveToRelative(-1.5f, 0f)
                horizontalLineTo(12f)
                moveToRelative(-8.457f, 3.077f)
                lineToRelative(1.41f, -0.513f)
                moveToRelative(14.095f, -5.13f)
                lineToRelative(1.41f, -0.513f)
                moveTo(5.106f, 17.785f)
                lineToRelative(1.15f, -0.964f)
                moveToRelative(11.49f, -9.642f)
                lineToRelative(1.149f, -0.964f)
                moveTo(7.501f, 19.795f)
                lineToRelative(0.75f, -1.3f)
                moveToRelative(7.5f, -12.99f)
                lineToRelative(0.75f, -1.3f)
                moveToRelative(-6.063f, 16.658f)
                lineToRelative(0.26f, -1.477f)
                moveToRelative(2.605f, -14.772f)
                lineToRelative(0.26f, -1.477f)
                moveToRelative(0f, 17.726f)
                lineToRelative(-0.26f, -1.477f)
                moveTo(10.698f, 4.614f)
                lineToRelative(-0.26f, -1.477f)
                moveTo(16.5f, 19.794f)
                lineToRelative(-0.75f, -1.299f)
                moveTo(7.5f, 4.205f)
                lineTo(12f, 12f)
                moveToRelative(6.894f, 5.785f)
                lineToRelative(-1.149f, -0.964f)
                moveTo(6.256f, 7.178f)
                lineToRelative(-1.15f, -0.964f)
                moveToRelative(15.352f, 8.864f)
                lineToRelative(-1.41f, -0.513f)
                moveTo(4.954f, 9.435f)
                lineToRelative(-1.41f, -0.514f)
                moveTo(12.002f, 12f)
                lineToRelative(-3.75f, 6.495f)
            }
        }.build()
        
        return _HeroiconsCog!!
    }

private var _HeroiconsCog: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/heroicons/cog.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:strokeWidth="1.5"
        android:pathData="M4.5,12a7.5,7.5 0 0,0 15,0m-15,0a7.5,7.5 0 1,1 15,0m-15,0H3m16.5,0H21m-1.5,0H12m-8.457,3.077l1.41,-0.513m14.095,-5.13l1.41,-0.513M5.106,17.785l1.15,-0.964m11.49,-9.642l1.149,-0.964M7.501,19.795l0.75,-1.3m7.5,-12.99l0.75,-1.3m-6.063,16.658l0.26,-1.477m2.605,-14.772l0.26,-1.477m0,17.726l-0.26,-1.477M10.698,4.614l-0.26,-1.477M16.5,19.794l-0.75,-1.299M7.5,4.205L12,12m6.894,5.785l-1.149,-0.964M6.256,7.178l-1.15,-0.964m15.352,8.864l-1.41,-0.513M4.954,9.435l-1.41,-0.514M12.002,12l-3.75,6.495" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/heroicons/cog.svg`

```svg
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"/></svg>
```
