# polyline icon

Polyline. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/polyline

- Category: Design
- Use it for: polyline, polyline tool
- Tags: polyline, polyline tool, path, open path, segments, vertices, nodes, anchor, zigzag, vector, draw, cad
- Component name: PolylineIcon
- Added: 2026-10-29
- Since: version 0.2.0
- npm: `import { PolylineIcon } from '@gentleface/react';` (@gentleface/react 0.2.0)
- Changed: 2026-10-30 (added)

## Files

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it.

- line-round: https://gentleface.com/svg/line-round/16/polyline.svg · PNG https://gentleface.com/png/line-round/16/polyline.png · https://gentleface.com/png/line-round/32/polyline.png · https://gentleface.com/png/line-round/48/polyline.png
- line-soft: https://gentleface.com/svg/line-soft/16/polyline.svg · PNG https://gentleface.com/png/line-soft/16/polyline.png · https://gentleface.com/png/line-soft/32/polyline.png · https://gentleface.com/png/line-soft/48/polyline.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/polyline.svg · PNG https://gentleface.com/png/line-sharp/16/polyline.png · https://gentleface.com/png/line-sharp/32/polyline.png · https://gentleface.com/png/line-sharp/48/polyline.png
- solid-round: https://gentleface.com/svg/solid-round/16/polyline.svg · PNG https://gentleface.com/png/solid-round/16/polyline.png · https://gentleface.com/png/solid-round/32/polyline.png · https://gentleface.com/png/solid-round/48/polyline.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/polyline.svg · PNG https://gentleface.com/png/solid-soft/16/polyline.png · https://gentleface.com/png/solid-soft/32/polyline.png · https://gentleface.com/png/solid-soft/48/polyline.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/polyline.svg · PNG https://gentleface.com/png/solid-sharp/16/polyline.png · https://gentleface.com/png/solid-sharp/32/polyline.png · https://gentleface.com/png/solid-sharp/48/polyline.png

The SVG of every style: https://gentleface.com/icons/polyline.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z"/></svg>
```

### React

```tsx
// Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline
import type { SVGProps } from 'react';

export function PolylineIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/polyline.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline. Takes the text color. */
.icon-polyline {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#polyline"/></svg>
```

### SwiftUI

```swift
// Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline
import SwiftUI

struct PolylineIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 13.309, y: 4))
        p.addLine(to: CGPoint(x: 10.809, y: 9))
        p.addLine(to: CGPoint(x: 11, y: 9))
        p.addLine(to: CGPoint(x: 11, y: 12))
        p.addLine(to: CGPoint(x: 8, y: 12))
        p.addLine(to: CGPoint(x: 8, y: 9))
        p.addLine(to: CGPoint(x: 8.191, y: 9))
        p.addLine(to: CGPoint(x: 6.691, y: 6))
        p.addLine(to: CGPoint(x: 6.309, y: 6))
        p.addLine(to: CGPoint(x: 3.809, y: 11))
        p.addLine(to: CGPoint(x: 4, y: 11))
        p.addLine(to: CGPoint(x: 4, y: 14))
        p.addLine(to: CGPoint(x: 1, y: 14))
        p.addLine(to: CGPoint(x: 1, y: 11))
        p.addLine(to: CGPoint(x: 2.691, y: 11))
        p.addLine(to: CGPoint(x: 5.191, y: 6))
        p.addLine(to: CGPoint(x: 5, y: 6))
        p.addLine(to: CGPoint(x: 5, y: 3))
        p.addLine(to: CGPoint(x: 8, y: 3))
        p.addLine(to: CGPoint(x: 8, y: 6))
        p.addLine(to: CGPoint(x: 7.809, y: 6))
        p.addLine(to: CGPoint(x: 9.309, y: 9))
        p.addLine(to: CGPoint(x: 9.691, y: 9))
        p.addLine(to: CGPoint(x: 12.191, y: 4))
        p.addLine(to: CGPoint(x: 12, y: 4))
        p.addLine(to: CGPoint(x: 12, y: 1))
        p.addLine(to: CGPoint(x: 15, y: 1))
        p.addLine(to: CGPoint(x: 15, y: 4))
        p.addLine(to: CGPoint(x: 13.309, y: 4))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// PolylineIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline
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.addPathNodes
import androidx.compose.ui.unit.dp

val PolylineIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "polyline", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(PolylineIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_polyline.xml · Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M13.309 4L10.809 9L11 9L11 12L8 12L8 9L8.191 9L6.691 6L6.309 6L3.809 11L4 11L4 14L1 14L1 11L2.691 11L5.191 6L5 6L5 3L8 3L8 6L7.809 6L9.309 9L9.691 9L12.191 4L12 4L12 1L15 1L15 4L13.309 4Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "polyline" (line-round), MIT. https://gentleface.com/icons/polyline
import 'package:flutter/widgets.dart';

class PolylineIcon extends StatelessWidget {
  const PolylineIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _PolylineIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _PolylineIconPainter extends CustomPainter {
  _PolylineIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(13.309, 4)
      ..lineTo(10.809, 9)
      ..lineTo(11, 9)
      ..lineTo(11, 12)
      ..lineTo(8, 12)
      ..lineTo(8, 9)
      ..lineTo(8.191, 9)
      ..lineTo(6.691, 6)
      ..lineTo(6.309, 6)
      ..lineTo(3.809, 11)
      ..lineTo(4, 11)
      ..lineTo(4, 14)
      ..lineTo(1, 14)
      ..lineTo(1, 11)
      ..lineTo(2.691, 11)
      ..lineTo(5.191, 6)
      ..lineTo(5, 6)
      ..lineTo(5, 3)
      ..lineTo(8, 3)
      ..lineTo(8, 6)
      ..lineTo(7.809, 6)
      ..lineTo(9.309, 9)
      ..lineTo(9.691, 9)
      ..lineTo(12.191, 4)
      ..lineTo(12, 4)
      ..lineTo(12, 1)
      ..lineTo(15, 1)
      ..lineTo(15, 4)
      ..lineTo(13.309, 4)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_PolylineIconPainter old) => old.color != color;
}
```
