# pi icon

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

- Category: Math & symbols
- Use it for: pi, mathematical constant
- Tags: pi, constant, greek, circle, math, symbol
- Component name: PiIcon
- Added: 2026-10-16

## Also fits

- formula: the Word-style insert-equation button

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

The SVG of every style: https://gentleface.com/icons/pi.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="M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.5Z"/></svg>
```

### React

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

export function PiIcon(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="M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.5Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "pi" (line-round), MIT. https://gentleface.com/icons/pi -->
<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="M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.5Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "pi" (line-round), MIT. https://gentleface.com/icons/pi -->
<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="M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.5Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "pi" (line-round), MIT. https://gentleface.com/icons/pi. Takes the text color. */
.icon-pi {
  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='M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.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='M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.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='M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.5Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct PiIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 10, y: 10.5))
        p.addCurve(to: CGPoint(x: 10.105, y: 11.052), control1: CGPoint(x: 10, y: 10.691), control2: CGPoint(x: 10.035, y: 10.875))
        p.addCurve(to: CGPoint(x: 10.439, y: 11.561), control1: CGPoint(x: 10.182, y: 11.245), control2: CGPoint(x: 10.293, y: 11.414))
        p.addCurve(to: CGPoint(x: 10.948, y: 11.895), control1: CGPoint(x: 10.586, y: 11.707), control2: CGPoint(x: 10.755, y: 11.818))
        p.addCurve(to: CGPoint(x: 11.5, y: 12), control1: CGPoint(x: 11.125, y: 11.965), control2: CGPoint(x: 11.309, y: 12))
        p.addLine(to: CGPoint(x: 12.5, y: 12))
        p.addCurve(to: CGPoint(x: 12.856, y: 12.144), control1: CGPoint(x: 12.641, y: 12), control2: CGPoint(x: 12.759, y: 12.048))
        p.addCurve(to: CGPoint(x: 13, y: 12.5), control1: CGPoint(x: 12.952, y: 12.241), control2: CGPoint(x: 13, y: 12.359))
        p.addCurve(to: CGPoint(x: 12.856, y: 12.856), control1: CGPoint(x: 13, y: 12.641), control2: CGPoint(x: 12.952, y: 12.759))
        p.addCurve(to: CGPoint(x: 12.5, y: 13), control1: CGPoint(x: 12.759, y: 12.952), control2: CGPoint(x: 12.641, y: 13))
        p.addLine(to: CGPoint(x: 11.5, y: 13))
        p.addCurve(to: CGPoint(x: 10.58, y: 12.824), control1: CGPoint(x: 11.182, y: 13), control2: CGPoint(x: 10.875, y: 12.941))
        p.addCurve(to: CGPoint(x: 9.732, y: 12.268), control1: CGPoint(x: 10.259, y: 12.697), control2: CGPoint(x: 9.976, y: 12.512))
        p.addCurve(to: CGPoint(x: 9.176, y: 11.42), control1: CGPoint(x: 9.488, y: 12.024), control2: CGPoint(x: 9.303, y: 11.741))
        p.addCurve(to: CGPoint(x: 9, y: 10.5), control1: CGPoint(x: 9.059, y: 11.125), control2: CGPoint(x: 9, y: 10.818))
        p.addLine(to: CGPoint(x: 9, y: 3))
        p.addLine(to: CGPoint(x: 5, y: 3))
        p.addLine(to: CGPoint(x: 5, y: 12.5))
        p.addCurve(to: CGPoint(x: 4.856, y: 12.856), control1: CGPoint(x: 5, y: 12.641), control2: CGPoint(x: 4.952, y: 12.759))
        p.addCurve(to: CGPoint(x: 4.5, y: 13), control1: CGPoint(x: 4.759, y: 12.952), control2: CGPoint(x: 4.641, y: 13))
        p.addCurve(to: CGPoint(x: 4.144, y: 12.856), control1: CGPoint(x: 4.359, y: 13), control2: CGPoint(x: 4.241, y: 12.952))
        p.addCurve(to: CGPoint(x: 4, y: 12.5), control1: CGPoint(x: 4.048, y: 12.759), control2: CGPoint(x: 4, y: 12.641))
        p.addLine(to: CGPoint(x: 4, y: 3))
        p.addLine(to: CGPoint(x: 2.5, y: 3))
        p.addCurve(to: CGPoint(x: 2.144, y: 2.856), control1: CGPoint(x: 2.359, y: 3), control2: CGPoint(x: 2.241, y: 2.952))
        p.addCurve(to: CGPoint(x: 2, y: 2.5), control1: CGPoint(x: 2.048, y: 2.759), control2: CGPoint(x: 2, y: 2.641))
        p.addCurve(to: CGPoint(x: 2.144, y: 2.144), control1: CGPoint(x: 2, y: 2.359), control2: CGPoint(x: 2.048, y: 2.241))
        p.addCurve(to: CGPoint(x: 2.5, y: 2), control1: CGPoint(x: 2.241, y: 2.048), control2: CGPoint(x: 2.359, y: 2))
        p.addLine(to: CGPoint(x: 12.5, y: 2))
        p.addCurve(to: CGPoint(x: 12.856, y: 2.144), control1: CGPoint(x: 12.641, y: 2), control2: CGPoint(x: 12.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 13, y: 2.5), control1: CGPoint(x: 12.952, y: 2.241), control2: CGPoint(x: 13, y: 2.359))
        p.addCurve(to: CGPoint(x: 12.856, y: 2.856), control1: CGPoint(x: 13, y: 2.641), control2: CGPoint(x: 12.952, y: 2.759))
        p.addCurve(to: CGPoint(x: 12.5, y: 3), control1: CGPoint(x: 12.759, y: 2.952), control2: CGPoint(x: 12.641, y: 3))
        p.addLine(to: CGPoint(x: 10, y: 3))
        p.addLine(to: CGPoint(x: 10, y: 10.5))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "pi" (line-round), MIT. https://gentleface.com/icons/pi
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 PiIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "pi", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.5Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_pi.xml · Gentleface "pi" (line-round), MIT. https://gentleface.com/icons/pi -->
<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="M10 10.5C10 10.691 10.035 10.875 10.105 11.052C10.182 11.245 10.293 11.414 10.439 11.561C10.586 11.707 10.755 11.818 10.948 11.895C11.125 11.965 11.309 12 11.5 12L12.5 12C12.641 12 12.759 12.048 12.856 12.144C12.952 12.241 13 12.359 13 12.5C13 12.641 12.952 12.759 12.856 12.856C12.759 12.952 12.641 13 12.5 13L11.5 13C11.182 13 10.875 12.941 10.58 12.824C10.259 12.697 9.976 12.512 9.732 12.268C9.488 12.024 9.303 11.741 9.176 11.42C9.059 11.125 9 10.818 9 10.5L9 3L5 3L5 12.5C5 12.641 4.952 12.759 4.856 12.856C4.759 12.952 4.641 13 4.5 13C4.359 13 4.241 12.952 4.144 12.856C4.048 12.759 4 12.641 4 12.5L4 3L2.5 3C2.359 3 2.241 2.952 2.144 2.856C2.048 2.759 2 2.641 2 2.5C2 2.359 2.048 2.241 2.144 2.144C2.241 2.048 2.359 2 2.5 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.641 12.952 2.759 12.856 2.856C12.759 2.952 12.641 3 12.5 3L10 3L10 10.5Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(10, 10.5)
      ..cubicTo(10, 10.691, 10.035, 10.875, 10.105, 11.052)
      ..cubicTo(10.182, 11.245, 10.293, 11.414, 10.439, 11.561)
      ..cubicTo(10.586, 11.707, 10.755, 11.818, 10.948, 11.895)
      ..cubicTo(11.125, 11.965, 11.309, 12, 11.5, 12)
      ..lineTo(12.5, 12)
      ..cubicTo(12.641, 12, 12.759, 12.048, 12.856, 12.144)
      ..cubicTo(12.952, 12.241, 13, 12.359, 13, 12.5)
      ..cubicTo(13, 12.641, 12.952, 12.759, 12.856, 12.856)
      ..cubicTo(12.759, 12.952, 12.641, 13, 12.5, 13)
      ..lineTo(11.5, 13)
      ..cubicTo(11.182, 13, 10.875, 12.941, 10.58, 12.824)
      ..cubicTo(10.259, 12.697, 9.976, 12.512, 9.732, 12.268)
      ..cubicTo(9.488, 12.024, 9.303, 11.741, 9.176, 11.42)
      ..cubicTo(9.059, 11.125, 9, 10.818, 9, 10.5)
      ..lineTo(9, 3)
      ..lineTo(5, 3)
      ..lineTo(5, 12.5)
      ..cubicTo(5, 12.641, 4.952, 12.759, 4.856, 12.856)
      ..cubicTo(4.759, 12.952, 4.641, 13, 4.5, 13)
      ..cubicTo(4.359, 13, 4.241, 12.952, 4.144, 12.856)
      ..cubicTo(4.048, 12.759, 4, 12.641, 4, 12.5)
      ..lineTo(4, 3)
      ..lineTo(2.5, 3)
      ..cubicTo(2.359, 3, 2.241, 2.952, 2.144, 2.856)
      ..cubicTo(2.048, 2.759, 2, 2.641, 2, 2.5)
      ..cubicTo(2, 2.359, 2.048, 2.241, 2.144, 2.144)
      ..cubicTo(2.241, 2.048, 2.359, 2, 2.5, 2)
      ..lineTo(12.5, 2)
      ..cubicTo(12.641, 2, 12.759, 2.048, 12.856, 2.144)
      ..cubicTo(12.952, 2.241, 13, 2.359, 13, 2.5)
      ..cubicTo(13, 2.641, 12.952, 2.759, 12.856, 2.856)
      ..cubicTo(12.759, 2.952, 12.641, 3, 12.5, 3)
      ..lineTo(10, 3)
      ..lineTo(10, 10.5)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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