# pen-tool Icon

> The pen-tool 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: [Text](https://composables.com/icons/categories/text.md), [Design](https://composables.com/icons/categories/design.md), [Cursors](https://composables.com/icons/categories/cursors.md)

## Compose ImageVector (Kotlin)

For Jetpack Compose and Compose Multiplatform. Download: `https://composables.com/download/icons/lucide/pen-tool.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 LucidePenTool: ImageVector
    get() {
        if (_LucidePenTool != null) return _LucidePenTool!!
        
        _LucidePenTool = ImageVector.Builder(
            name = "pen-tool",
            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(15.707f, 21.293f)
                arcToRelative(1f, 1f, 0f, false, true, -1.414f, 0f)
                lineToRelative(-1.586f, -1.586f)
                arcToRelative(1f, 1f, 0f, false, true, 0f, -1.414f)
                lineToRelative(5.586f, -5.586f)
                arcToRelative(1f, 1f, 0f, false, true, 1.414f, 0f)
                lineToRelative(1.586f, 1.586f)
                arcToRelative(1f, 1f, 0f, false, true, 0f, 1.414f)
                close()
            }
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 2f,
                strokeLineCap = StrokeCap.Round,
                strokeLineJoin = StrokeJoin.Round
            ) {
                moveTo(18f, 13f)
                lineToRelative(-1.375f, -6.874f)
                arcToRelative(1f, 1f, 0f, false, false, -0.746f, -0.776f)
                lineTo(3.235f, 2.028f)
                arcToRelative(1f, 1f, 0f, false, false, -1.207f, 1.207f)
                lineTo(5.35f, 15.879f)
                arcToRelative(1f, 1f, 0f, false, false, 0.776f, 0.746f)
                lineTo(13f, 18f)
            }
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 2f,
                strokeLineCap = StrokeCap.Round,
                strokeLineJoin = StrokeJoin.Round
            ) {
                moveTo(2.3f, 2.3f)
                lineToRelative(7.286f, 7.286f)
            }
            path(
                fill = SolidColor(Color.Transparent),
                stroke = SolidColor(Color.Black),
                strokeLineWidth = 2f,
                strokeLineCap = StrokeCap.Round,
                strokeLineJoin = StrokeJoin.Round
            ) {
                moveTo(13f, 11f)
                arcTo(2f, 2f, 0f, false, true, 11f, 13f)
                arcTo(2f, 2f, 0f, false, true, 9f, 11f)
                arcTo(2f, 2f, 0f, false, true, 13f, 11f)
                close()
            }
        }.build()
        
        return _LucidePenTool!!
    }

private var _LucidePenTool: ImageVector? = null
```

## Android Vector Drawable (XML)

Download: `https://composables.com/download/icons/lucide/pen-tool.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.707,21.293a1,1 0 0,1 -1.414,0l-1.586,-1.586a1,1 0 0,1 0,-1.414l5.586,-5.586a1,1 0 0,1 1.414,0l1.586,1.586a1,1 0 0,1 0,1.414Z" />
    <path
        android:strokeColor="@android:color/black"
        android:strokeLineCap="round"
        android:strokeLineJoin="round"
        android:strokeWidth="2"
        android:pathData="m18,13l-1.375,-6.874a1,1 0 0,0 -0.746,-0.776L3.235,2.028a1,1 0 0,0 -1.207,1.207L5.35,15.879a1,1 0 0,0 0.776,0.746L13,18" />
    <path
        android:strokeColor="@android:color/black"
        android:strokeLineCap="round"
        android:strokeLineJoin="round"
        android:strokeWidth="2"
        android:pathData="m2.3,2.3l7.286,7.286" />
    <path
        android:strokeColor="@android:color/black"
        android:strokeLineCap="round"
        android:strokeLineJoin="round"
        android:strokeWidth="2"
        android:pathData="M13,11A2,2 0 0,1 11,13A2,2 0 0,1 9,11A2,2 0 0,1 13,11Z" />
</vector>
```

## SVG

Download: `https://composables.com/download/icons/lucide/pen-tool.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" ><path d="M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z" /><path d="m18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18" /><path d="m2.3 2.3 7.286 7.286" /><circle cx="11" cy="11" r="2" /></svg>
```
