# pill icon

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

- Category: Health & medical
- Use it for: pill, medicine, medication, drug, meds, capsule
- Tags: pill, capsule, medicine, medication, drug, pharmacy, tablet, prescription, dose
- Family: pill-check, pill-clock, pill-plus
- Component name: PillIcon
- Added: 2026-10-14

## Alternatives

- `tag`: a pill-shaped tag, chip or label in a UI
- `pill-bottle`: a pharmacy or supplements
- `prescription`: a prescription (Rx)

## Don't confuse with

- `tablet`: tablet is the device

## Also fits

- tablet: a medicine tablet (pill)

## 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/pill.svg · PNG https://gentleface.com/png/line-round/16/pill.png · https://gentleface.com/png/line-round/32/pill.png · https://gentleface.com/png/line-round/48/pill.png
- line-soft: https://gentleface.com/svg/line-soft/16/pill.svg · PNG https://gentleface.com/png/line-soft/16/pill.png · https://gentleface.com/png/line-soft/32/pill.png · https://gentleface.com/png/line-soft/48/pill.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/pill.svg · PNG https://gentleface.com/png/line-sharp/16/pill.png · https://gentleface.com/png/line-sharp/32/pill.png · https://gentleface.com/png/line-sharp/48/pill.png
- solid-round: https://gentleface.com/svg/solid-round/16/pill.svg · PNG https://gentleface.com/png/solid-round/16/pill.png · https://gentleface.com/png/solid-round/32/pill.png · https://gentleface.com/png/solid-round/48/pill.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/pill.svg · PNG https://gentleface.com/png/solid-soft/16/pill.png · https://gentleface.com/png/solid-soft/32/pill.png · https://gentleface.com/png/solid-soft/48/pill.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/pill.svg · PNG https://gentleface.com/png/solid-sharp/16/pill.png · https://gentleface.com/png/solid-sharp/32/pill.png · https://gentleface.com/png/solid-sharp/48/pill.png

The SVG of every style: https://gentleface.com/icons/pill.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="M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z"/></svg>
```

### React

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

export function PillIcon(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="M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "pill" (line-round), MIT. https://gentleface.com/icons/pill -->
<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="M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "pill" (line-round), MIT. https://gentleface.com/icons/pill -->
<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="M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "pill" (line-round), MIT. https://gentleface.com/icons/pill. 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/pill.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "pill" (line-round), MIT. https://gentleface.com/icons/pill. Takes the text color. */
.icon-pill {
  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='M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z'/%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='M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z'/%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='M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "pill" (line-round), MIT. https://gentleface.com/icons/pill
     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#pill"/></svg>
```

### SwiftUI

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

struct PillIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 6.854, y: 12.854))
        p.addCurve(to: CGPoint(x: 5.765, y: 13.532), control1: CGPoint(x: 6.557, y: 13.15), control2: CGPoint(x: 6.194, y: 13.376))
        p.addCurve(to: CGPoint(x: 4.5, y: 13.75), control1: CGPoint(x: 5.366, y: 13.677), control2: CGPoint(x: 4.944, y: 13.75))
        p.addCurve(to: CGPoint(x: 3.235, y: 13.532), control1: CGPoint(x: 4.056, y: 13.75), control2: CGPoint(x: 3.634, y: 13.677))
        p.addCurve(to: CGPoint(x: 2.146, y: 12.854), control1: CGPoint(x: 2.806, y: 13.376), control2: CGPoint(x: 2.443, y: 13.15))
        p.addCurve(to: CGPoint(x: 1.468, y: 11.765), control1: CGPoint(x: 1.85, y: 12.557), control2: CGPoint(x: 1.624, y: 12.194))
        p.addCurve(to: CGPoint(x: 1.25, y: 10.5), control1: CGPoint(x: 1.323, y: 11.366), control2: CGPoint(x: 1.25, y: 10.944))
        p.addCurve(to: CGPoint(x: 1.468, y: 9.235), control1: CGPoint(x: 1.25, y: 10.056), control2: CGPoint(x: 1.323, y: 9.634))
        p.addCurve(to: CGPoint(x: 2.146, y: 8.146), control1: CGPoint(x: 1.624, y: 8.806), control2: CGPoint(x: 1.85, y: 8.443))
        p.addLine(to: CGPoint(x: 8.146, y: 2.146))
        p.addCurve(to: CGPoint(x: 9.235, y: 1.468), control1: CGPoint(x: 8.443, y: 1.85), control2: CGPoint(x: 8.806, y: 1.624))
        p.addCurve(to: CGPoint(x: 10.5, y: 1.25), control1: CGPoint(x: 9.634, y: 1.323), control2: CGPoint(x: 10.056, y: 1.25))
        p.addCurve(to: CGPoint(x: 11.765, y: 1.468), control1: CGPoint(x: 10.944, y: 1.25), control2: CGPoint(x: 11.366, y: 1.323))
        p.addCurve(to: CGPoint(x: 12.854, y: 2.146), control1: CGPoint(x: 12.194, y: 1.624), control2: CGPoint(x: 12.557, y: 1.85))
        p.addCurve(to: CGPoint(x: 13.532, y: 3.235), control1: CGPoint(x: 13.15, y: 2.443), control2: CGPoint(x: 13.376, y: 2.806))
        p.addCurve(to: CGPoint(x: 13.75, y: 4.5), control1: CGPoint(x: 13.677, y: 3.634), control2: CGPoint(x: 13.75, y: 4.056))
        p.addCurve(to: CGPoint(x: 13.532, y: 5.765), control1: CGPoint(x: 13.75, y: 4.944), control2: CGPoint(x: 13.677, y: 5.366))
        p.addCurve(to: CGPoint(x: 12.854, y: 6.854), control1: CGPoint(x: 13.376, y: 6.194), control2: CGPoint(x: 13.15, y: 6.557))
        p.addLine(to: CGPoint(x: 6.854, y: 12.854))
        p.closeSubpath()
        p.move(to: CGPoint(x: 12.146, y: 6.146))
        p.addCurve(to: CGPoint(x: 12.593, y: 5.423), control1: CGPoint(x: 12.338, y: 5.955), control2: CGPoint(x: 12.487, y: 5.713))
        p.addCurve(to: CGPoint(x: 12.75, y: 4.5), control1: CGPoint(x: 12.698, y: 5.134), control2: CGPoint(x: 12.75, y: 4.827))
        p.addCurve(to: CGPoint(x: 12.593, y: 3.577), control1: CGPoint(x: 12.75, y: 4.173), control2: CGPoint(x: 12.698, y: 3.866))
        p.addCurve(to: CGPoint(x: 12.146, y: 2.854), control1: CGPoint(x: 12.487, y: 3.287), control2: CGPoint(x: 12.338, y: 3.045))
        p.addCurve(to: CGPoint(x: 11.423, y: 2.407), control1: CGPoint(x: 11.955, y: 2.662), control2: CGPoint(x: 11.713, y: 2.513))
        p.addCurve(to: CGPoint(x: 10.5, y: 2.25), control1: CGPoint(x: 11.134, y: 2.302), control2: CGPoint(x: 10.827, y: 2.25))
        p.addCurve(to: CGPoint(x: 9.577, y: 2.407), control1: CGPoint(x: 10.173, y: 2.25), control2: CGPoint(x: 9.866, y: 2.302))
        p.addCurve(to: CGPoint(x: 8.854, y: 2.854), control1: CGPoint(x: 9.287, y: 2.513), control2: CGPoint(x: 9.045, y: 2.662))
        p.addLine(to: CGPoint(x: 6.207, y: 5.5))
        p.addLine(to: CGPoint(x: 9.5, y: 8.793))
        p.addLine(to: CGPoint(x: 12.146, y: 6.146))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.793, y: 9.5))
        p.addLine(to: CGPoint(x: 5.5, y: 6.207))
        p.addLine(to: CGPoint(x: 2.854, y: 8.854))
        p.addCurve(to: CGPoint(x: 2.407, y: 9.577), control1: CGPoint(x: 2.662, y: 9.045), control2: CGPoint(x: 2.513, y: 9.287))
        p.addCurve(to: CGPoint(x: 2.25, y: 10.5), control1: CGPoint(x: 2.302, y: 9.866), control2: CGPoint(x: 2.25, y: 10.173))
        p.addCurve(to: CGPoint(x: 2.407, y: 11.423), control1: CGPoint(x: 2.25, y: 10.827), control2: CGPoint(x: 2.302, y: 11.134))
        p.addCurve(to: CGPoint(x: 2.854, y: 12.146), control1: CGPoint(x: 2.513, y: 11.713), control2: CGPoint(x: 2.662, y: 11.955))
        p.addCurve(to: CGPoint(x: 3.577, y: 12.593), control1: CGPoint(x: 3.045, y: 12.338), control2: CGPoint(x: 3.287, y: 12.487))
        p.addCurve(to: CGPoint(x: 4.5, y: 12.75), control1: CGPoint(x: 3.866, y: 12.698), control2: CGPoint(x: 4.173, y: 12.75))
        p.addCurve(to: CGPoint(x: 5.423, y: 12.593), control1: CGPoint(x: 4.827, y: 12.75), control2: CGPoint(x: 5.134, y: 12.698))
        p.addCurve(to: CGPoint(x: 6.146, y: 12.146), control1: CGPoint(x: 5.714, y: 12.487), control2: CGPoint(x: 5.955, y: 12.338))
        p.addLine(to: CGPoint(x: 8.793, y: 9.5))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "pill" (line-round), MIT. https://gentleface.com/icons/pill
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 PillIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "pill", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_pill.xml · Gentleface "pill" (line-round), MIT. https://gentleface.com/icons/pill -->
<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="M6.854 12.854C6.557 13.15 6.194 13.376 5.765 13.532C5.366 13.677 4.944 13.75 4.5 13.75C4.056 13.75 3.634 13.677 3.235 13.532C2.806 13.376 2.443 13.15 2.146 12.854C1.85 12.557 1.624 12.194 1.468 11.765C1.323 11.366 1.25 10.944 1.25 10.5C1.25 10.056 1.323 9.634 1.468 9.235C1.624 8.806 1.85 8.443 2.146 8.146L8.146 2.146C8.443 1.85 8.806 1.624 9.235 1.468C9.634 1.323 10.056 1.25 10.5 1.25C10.944 1.25 11.366 1.323 11.765 1.468C12.194 1.624 12.557 1.85 12.854 2.146C13.15 2.443 13.376 2.806 13.532 3.235C13.677 3.634 13.75 4.056 13.75 4.5C13.75 4.944 13.677 5.366 13.532 5.765C13.376 6.194 13.15 6.557 12.854 6.854L6.854 12.854ZM12.146 6.146C12.338 5.955 12.487 5.713 12.593 5.423C12.698 5.134 12.75 4.827 12.75 4.5C12.75 4.173 12.698 3.866 12.593 3.577C12.487 3.287 12.338 3.045 12.146 2.854C11.955 2.662 11.713 2.513 11.423 2.407C11.134 2.302 10.827 2.25 10.5 2.25C10.173 2.25 9.866 2.302 9.577 2.407C9.287 2.513 9.045 2.662 8.854 2.854L6.207 5.5L9.5 8.793L12.146 6.146ZM8.793 9.5L5.5 6.207L2.854 8.854C2.662 9.045 2.513 9.287 2.407 9.577C2.302 9.866 2.25 10.173 2.25 10.5C2.25 10.827 2.302 11.134 2.407 11.423C2.513 11.713 2.662 11.955 2.854 12.146C3.045 12.338 3.287 12.487 3.577 12.593C3.866 12.698 4.173 12.75 4.5 12.75C4.827 12.75 5.134 12.698 5.423 12.593C5.714 12.487 5.955 12.338 6.146 12.146L8.793 9.5Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(6.854, 12.854)
      ..cubicTo(6.557, 13.15, 6.194, 13.376, 5.765, 13.532)
      ..cubicTo(5.366, 13.677, 4.944, 13.75, 4.5, 13.75)
      ..cubicTo(4.056, 13.75, 3.634, 13.677, 3.235, 13.532)
      ..cubicTo(2.806, 13.376, 2.443, 13.15, 2.146, 12.854)
      ..cubicTo(1.85, 12.557, 1.624, 12.194, 1.468, 11.765)
      ..cubicTo(1.323, 11.366, 1.25, 10.944, 1.25, 10.5)
      ..cubicTo(1.25, 10.056, 1.323, 9.634, 1.468, 9.235)
      ..cubicTo(1.624, 8.806, 1.85, 8.443, 2.146, 8.146)
      ..lineTo(8.146, 2.146)
      ..cubicTo(8.443, 1.85, 8.806, 1.624, 9.235, 1.468)
      ..cubicTo(9.634, 1.323, 10.056, 1.25, 10.5, 1.25)
      ..cubicTo(10.944, 1.25, 11.366, 1.323, 11.765, 1.468)
      ..cubicTo(12.194, 1.624, 12.557, 1.85, 12.854, 2.146)
      ..cubicTo(13.15, 2.443, 13.376, 2.806, 13.532, 3.235)
      ..cubicTo(13.677, 3.634, 13.75, 4.056, 13.75, 4.5)
      ..cubicTo(13.75, 4.944, 13.677, 5.366, 13.532, 5.765)
      ..cubicTo(13.376, 6.194, 13.15, 6.557, 12.854, 6.854)
      ..lineTo(6.854, 12.854)
      ..close()
      ..moveTo(12.146, 6.146)
      ..cubicTo(12.338, 5.955, 12.487, 5.713, 12.593, 5.423)
      ..cubicTo(12.698, 5.134, 12.75, 4.827, 12.75, 4.5)
      ..cubicTo(12.75, 4.173, 12.698, 3.866, 12.593, 3.577)
      ..cubicTo(12.487, 3.287, 12.338, 3.045, 12.146, 2.854)
      ..cubicTo(11.955, 2.662, 11.713, 2.513, 11.423, 2.407)
      ..cubicTo(11.134, 2.302, 10.827, 2.25, 10.5, 2.25)
      ..cubicTo(10.173, 2.25, 9.866, 2.302, 9.577, 2.407)
      ..cubicTo(9.287, 2.513, 9.045, 2.662, 8.854, 2.854)
      ..lineTo(6.207, 5.5)
      ..lineTo(9.5, 8.793)
      ..lineTo(12.146, 6.146)
      ..close()
      ..moveTo(8.793, 9.5)
      ..lineTo(5.5, 6.207)
      ..lineTo(2.854, 8.854)
      ..cubicTo(2.662, 9.045, 2.513, 9.287, 2.407, 9.577)
      ..cubicTo(2.302, 9.866, 2.25, 10.173, 2.25, 10.5)
      ..cubicTo(2.25, 10.827, 2.302, 11.134, 2.407, 11.423)
      ..cubicTo(2.513, 11.713, 2.662, 11.955, 2.854, 12.146)
      ..cubicTo(3.045, 12.338, 3.287, 12.487, 3.577, 12.593)
      ..cubicTo(3.866, 12.698, 4.173, 12.75, 4.5, 12.75)
      ..cubicTo(4.827, 12.75, 5.134, 12.698, 5.423, 12.593)
      ..cubicTo(5.714, 12.487, 5.955, 12.338, 6.146, 12.146)
      ..lineTo(8.793, 9.5)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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