# golf icon

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

- Category: Games & sports
- Use it for: golf, golf course, mini golf
- Tags: golf, golf-course, flag, hole, putting-green, pin, sports, game, club
- Component name: GolfIcon
- Added: 2026-10-15

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

The SVG of every style: https://gentleface.com/icons/golf.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.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z"/></svg>
```

### React

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

export function GolfIcon(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.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "golf" (line-round), MIT. https://gentleface.com/icons/golf -->
<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.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "golf" (line-round), MIT. https://gentleface.com/icons/golf -->
<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.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "golf" (line-round), MIT. https://gentleface.com/icons/golf. Takes the text color. */
.icon-golf {
  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.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z'/%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.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z'/%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.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct GolfIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 6.22, y: 3.015))
        p.addCurve(to: CGPoint(x: 6.949, y: 2.226), control1: CGPoint(x: 6.39, y: 2.684), control2: CGPoint(x: 6.632, y: 2.421))
        p.addCurve(to: CGPoint(x: 7.98, y: 1.927), control1: CGPoint(x: 7.265, y: 2.03), control2: CGPoint(x: 7.609, y: 1.931))
        p.addCurve(to: CGPoint(x: 8.894, y: 2.138), control1: CGPoint(x: 8.302, y: 1.924), control2: CGPoint(x: 8.607, y: 1.994))
        p.addLine(to: CGPoint(x: 12.724, y: 4.053))
        p.addCurve(to: CGPoint(x: 12.974, y: 4.342), control1: CGPoint(x: 12.847, y: 4.115), control2: CGPoint(x: 12.931, y: 4.211))
        p.addCurve(to: CGPoint(x: 12.947, y: 4.724), control1: CGPoint(x: 13.018, y: 4.473), control2: CGPoint(x: 13.009, y: 4.6))
        p.addCurve(to: CGPoint(x: 12.724, y: 4.947), control1: CGPoint(x: 12.898, y: 4.823), control2: CGPoint(x: 12.823, y: 4.898))
        p.addLine(to: CGPoint(x: 7, y: 7.809))
        p.addLine(to: CGPoint(x: 7, y: 12.007))
        p.addCurve(to: CGPoint(x: 9.45, y: 12.308), control1: CGPoint(x: 7.934, y: 12.033), control2: CGPoint(x: 8.751, y: 12.133))
        p.addCurve(to: CGPoint(x: 10.612, y: 12.8), control1: CGPoint(x: 9.966, y: 12.437), control2: CGPoint(x: 10.354, y: 12.601))
        p.addCurve(to: CGPoint(x: 11, y: 13.5), control1: CGPoint(x: 10.871, y: 12.998), control2: CGPoint(x: 11, y: 13.232))
        p.addCurve(to: CGPoint(x: 10.612, y: 14.2), control1: CGPoint(x: 11, y: 13.768), control2: CGPoint(x: 10.871, y: 14.002))
        p.addCurve(to: CGPoint(x: 9.45, y: 14.692), control1: CGPoint(x: 10.354, y: 14.399), control2: CGPoint(x: 9.966, y: 14.563))
        p.addCurve(to: CGPoint(x: 6.5, y: 15), control1: CGPoint(x: 8.629, y: 14.897), control2: CGPoint(x: 7.646, y: 15))
        p.addCurve(to: CGPoint(x: 3.55, y: 14.692), control1: CGPoint(x: 5.354, y: 15), control2: CGPoint(x: 4.371, y: 14.897))
        p.addCurve(to: CGPoint(x: 2.388, y: 14.2), control1: CGPoint(x: 3.034, y: 14.563), control2: CGPoint(x: 2.646, y: 14.399))
        p.addCurve(to: CGPoint(x: 2, y: 13.5), control1: CGPoint(x: 2.129, y: 14.002), control2: CGPoint(x: 2, y: 13.768))
        p.addCurve(to: CGPoint(x: 2.388, y: 12.8), control1: CGPoint(x: 2, y: 13.232), control2: CGPoint(x: 2.129, y: 12.998))
        p.addCurve(to: CGPoint(x: 3.55, y: 12.308), control1: CGPoint(x: 2.646, y: 12.601), control2: CGPoint(x: 3.034, y: 12.437))
        p.addCurve(to: CGPoint(x: 6, y: 12.007), control1: CGPoint(x: 4.249, y: 12.133), control2: CGPoint(x: 5.066, y: 12.033))
        p.addLine(to: CGPoint(x: 6, y: 3.927))
        p.addCurve(to: CGPoint(x: 6.22, y: 3.015), control1: CGPoint(x: 6, y: 3.605), control2: CGPoint(x: 6.073, y: 3.301))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.447, y: 3.033))
        p.addCurve(to: CGPoint(x: 7.99, y: 2.927), control1: CGPoint(x: 8.303, y: 2.961), control2: CGPoint(x: 8.151, y: 2.926))
        p.addCurve(to: CGPoint(x: 7.474, y: 3.076), control1: CGPoint(x: 7.804, y: 2.929), control2: CGPoint(x: 7.632, y: 2.979))
        p.addCurve(to: CGPoint(x: 7.11, y: 3.471), control1: CGPoint(x: 7.316, y: 3.174), control2: CGPoint(x: 7.195, y: 3.306))
        p.addCurve(to: CGPoint(x: 7, y: 3.927), control1: CGPoint(x: 7.037, y: 3.614), control2: CGPoint(x: 7, y: 3.766))
        p.addLine(to: CGPoint(x: 7, y: 6.691))
        p.addLine(to: CGPoint(x: 11.382, y: 4.5))
        p.addLine(to: CGPoint(x: 8.447, y: 3.033))
        p.closeSubpath()
        p.move(to: CGPoint(x: 6.5, y: 14))
        p.addCurve(to: CGPoint(x: 9.207, y: 13.722), control1: CGPoint(x: 7.564, y: 14), control2: CGPoint(x: 8.466, y: 13.907))
        p.addCurve(to: CGPoint(x: 9.855, y: 13.5), control1: CGPoint(x: 9.483, y: 13.653), control2: CGPoint(x: 9.699, y: 13.579))
        p.addCurve(to: CGPoint(x: 9.207, y: 13.278), control1: CGPoint(x: 9.699, y: 13.421), control2: CGPoint(x: 9.483, y: 13.347))
        p.addCurve(to: CGPoint(x: 6.5, y: 13), control1: CGPoint(x: 8.466, y: 13.093), control2: CGPoint(x: 7.564, y: 13))
        p.addCurve(to: CGPoint(x: 3.793, y: 13.278), control1: CGPoint(x: 5.436, y: 13), control2: CGPoint(x: 4.534, y: 13.093))
        p.addCurve(to: CGPoint(x: 3.145, y: 13.5), control1: CGPoint(x: 3.517, y: 13.347), control2: CGPoint(x: 3.301, y: 13.421))
        p.addCurve(to: CGPoint(x: 3.793, y: 13.722), control1: CGPoint(x: 3.301, y: 13.579), control2: CGPoint(x: 3.517, y: 13.653))
        p.addCurve(to: CGPoint(x: 6.5, y: 14), control1: CGPoint(x: 4.534, y: 13.907), control2: CGPoint(x: 5.436, y: 14))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "golf" (line-round), MIT. https://gentleface.com/icons/golf
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 GolfIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "golf", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M6.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_golf.xml · Gentleface "golf" (line-round), MIT. https://gentleface.com/icons/golf -->
<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.22 3.015C6.39 2.684 6.632 2.421 6.949 2.226C7.265 2.03 7.609 1.931 7.98 1.927C8.302 1.924 8.607 1.994 8.894 2.138L12.724 4.053C12.847 4.115 12.931 4.211 12.974 4.342C13.018 4.473 13.009 4.6 12.947 4.724C12.898 4.823 12.823 4.898 12.724 4.947L7 7.809L7 12.007C7.934 12.033 8.751 12.133 9.45 12.308C9.966 12.437 10.354 12.601 10.612 12.8C10.871 12.998 11 13.232 11 13.5C11 13.768 10.871 14.002 10.612 14.2C10.354 14.399 9.966 14.563 9.45 14.692C8.629 14.897 7.646 15 6.5 15C5.354 15 4.371 14.897 3.55 14.692C3.034 14.563 2.646 14.399 2.388 14.2C2.129 14.002 2 13.768 2 13.5C2 13.232 2.129 12.998 2.388 12.8C2.646 12.601 3.034 12.437 3.55 12.308C4.249 12.133 5.066 12.033 6 12.007L6 3.927C6 3.605 6.073 3.301 6.22 3.015ZM8.447 3.033C8.303 2.961 8.151 2.926 7.99 2.927C7.804 2.929 7.632 2.979 7.474 3.076C7.316 3.174 7.195 3.306 7.11 3.471C7.037 3.614 7 3.766 7 3.927L7 6.691L11.382 4.5L8.447 3.033ZM6.5 14C7.564 14 8.466 13.907 9.207 13.722C9.483 13.653 9.699 13.579 9.855 13.5C9.699 13.421 9.483 13.347 9.207 13.278C8.466 13.093 7.564 13 6.5 13C5.436 13 4.534 13.093 3.793 13.278C3.517 13.347 3.301 13.421 3.145 13.5C3.301 13.579 3.517 13.653 3.793 13.722C4.534 13.907 5.436 14 6.5 14Z"/>
</vector>
```

### Flutter

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

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

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

class _GolfIconPainter extends CustomPainter {
  _GolfIconPainter(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.22, 3.015)
      ..cubicTo(6.39, 2.684, 6.632, 2.421, 6.949, 2.226)
      ..cubicTo(7.265, 2.03, 7.609, 1.931, 7.98, 1.927)
      ..cubicTo(8.302, 1.924, 8.607, 1.994, 8.894, 2.138)
      ..lineTo(12.724, 4.053)
      ..cubicTo(12.847, 4.115, 12.931, 4.211, 12.974, 4.342)
      ..cubicTo(13.018, 4.473, 13.009, 4.6, 12.947, 4.724)
      ..cubicTo(12.898, 4.823, 12.823, 4.898, 12.724, 4.947)
      ..lineTo(7, 7.809)
      ..lineTo(7, 12.007)
      ..cubicTo(7.934, 12.033, 8.751, 12.133, 9.45, 12.308)
      ..cubicTo(9.966, 12.437, 10.354, 12.601, 10.612, 12.8)
      ..cubicTo(10.871, 12.998, 11, 13.232, 11, 13.5)
      ..cubicTo(11, 13.768, 10.871, 14.002, 10.612, 14.2)
      ..cubicTo(10.354, 14.399, 9.966, 14.563, 9.45, 14.692)
      ..cubicTo(8.629, 14.897, 7.646, 15, 6.5, 15)
      ..cubicTo(5.354, 15, 4.371, 14.897, 3.55, 14.692)
      ..cubicTo(3.034, 14.563, 2.646, 14.399, 2.388, 14.2)
      ..cubicTo(2.129, 14.002, 2, 13.768, 2, 13.5)
      ..cubicTo(2, 13.232, 2.129, 12.998, 2.388, 12.8)
      ..cubicTo(2.646, 12.601, 3.034, 12.437, 3.55, 12.308)
      ..cubicTo(4.249, 12.133, 5.066, 12.033, 6, 12.007)
      ..lineTo(6, 3.927)
      ..cubicTo(6, 3.605, 6.073, 3.301, 6.22, 3.015)
      ..close()
      ..moveTo(8.447, 3.033)
      ..cubicTo(8.303, 2.961, 8.151, 2.926, 7.99, 2.927)
      ..cubicTo(7.804, 2.929, 7.632, 2.979, 7.474, 3.076)
      ..cubicTo(7.316, 3.174, 7.195, 3.306, 7.11, 3.471)
      ..cubicTo(7.037, 3.614, 7, 3.766, 7, 3.927)
      ..lineTo(7, 6.691)
      ..lineTo(11.382, 4.5)
      ..lineTo(8.447, 3.033)
      ..close()
      ..moveTo(6.5, 14)
      ..cubicTo(7.564, 14, 8.466, 13.907, 9.207, 13.722)
      ..cubicTo(9.483, 13.653, 9.699, 13.579, 9.855, 13.5)
      ..cubicTo(9.699, 13.421, 9.483, 13.347, 9.207, 13.278)
      ..cubicTo(8.466, 13.093, 7.564, 13, 6.5, 13)
      ..cubicTo(5.436, 13, 4.534, 13.093, 3.793, 13.278)
      ..cubicTo(3.517, 13.347, 3.301, 13.421, 3.145, 13.5)
      ..cubicTo(3.301, 13.579, 3.517, 13.653, 3.793, 13.722)
      ..cubicTo(4.534, 13.907, 5.436, 14, 6.5, 14)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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