# code icon

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

- Category: Development
- Use it for: code, source code, markup, embed, coding, embed code
- Tags: code, html, xml, markup, brackets, angle-brackets, developer, programming, source
- Family: binary, braces, brackets, code-alert, code-block, code-eye, code-off, code-pencil, code-play, code-search, code-sparkle, parentheses
- Component name: CodeIcon
- Added: 2026-10-14

## Alternatives

- `code-block`: a code block in a document (code-block)
- `file-code`: a source file (code-file)
- `terminal`: a shell or command line (terminal)
- `link`: share by URL instead of embedding (hyperlink)

## Also fits

- braces: markup and source code, </> (code)
- code block: inline code or code in general (code)
- terminal: source code (code)
- code file: source code without a file (code)
- function: source code in general (code)

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

The SVG of every style: https://gentleface.com/icons/code.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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z"/></svg>
```

### React

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

export function CodeIcon(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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "code" (line-round), MIT. https://gentleface.com/icons/code -->
<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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "code" (line-round), MIT. https://gentleface.com/icons/code -->
<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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "code" (line-round), MIT. https://gentleface.com/icons/code. Takes the text color. */
.icon-code {
  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='M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z'/%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='M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z'/%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='M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct CodeIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 5.947, y: 12.724))
        p.addCurve(to: CGPoint(x: 5.658, y: 12.974), control1: CGPoint(x: 5.885, y: 12.847), control2: CGPoint(x: 5.789, y: 12.931))
        p.addCurve(to: CGPoint(x: 5.276, y: 12.947), control1: CGPoint(x: 5.527, y: 13.018), control2: CGPoint(x: 5.4, y: 13.009))
        p.addCurve(to: CGPoint(x: 5.023, y: 12.659), control1: CGPoint(x: 5.15, y: 12.884), control2: CGPoint(x: 5.066, y: 12.788))
        p.addCurve(to: CGPoint(x: 5.053, y: 12.276), control1: CGPoint(x: 4.98, y: 12.53), control2: CGPoint(x: 4.99, y: 12.402))
        p.addLine(to: CGPoint(x: 10.053, y: 2.276))
        p.addCurve(to: CGPoint(x: 10.341, y: 2.023), control1: CGPoint(x: 10.116, y: 2.15), control2: CGPoint(x: 10.212, y: 2.066))
        p.addCurve(to: CGPoint(x: 10.724, y: 2.053), control1: CGPoint(x: 10.47, y: 1.98), control2: CGPoint(x: 10.598, y: 1.99))
        p.addCurve(to: CGPoint(x: 10.977, y: 2.341), control1: CGPoint(x: 10.85, y: 2.116), control2: CGPoint(x: 10.934, y: 2.212))
        p.addCurve(to: CGPoint(x: 10.947, y: 2.724), control1: CGPoint(x: 11.02, y: 2.47), control2: CGPoint(x: 11.01, y: 2.598))
        p.addLine(to: CGPoint(x: 5.947, y: 12.724))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.207, y: 7.5))
        p.addLine(to: CGPoint(x: 4.854, y: 10.146))
        p.addCurve(to: CGPoint(x: 5.003, y: 10.5), control1: CGPoint(x: 4.953, y: 10.246), control2: CGPoint(x: 5.003, y: 10.364))
        p.addCurve(to: CGPoint(x: 4.854, y: 10.854), control1: CGPoint(x: 5.003, y: 10.636), control2: CGPoint(x: 4.953, y: 10.754))
        p.addCurve(to: CGPoint(x: 4.5, y: 11), control1: CGPoint(x: 4.756, y: 10.951), control2: CGPoint(x: 4.638, y: 11))
        p.addCurve(to: CGPoint(x: 4.146, y: 10.854), control1: CGPoint(x: 4.362, y: 11), control2: CGPoint(x: 4.244, y: 10.951))
        p.addLine(to: CGPoint(x: 1.146, y: 7.854))
        p.addCurve(to: CGPoint(x: 1, y: 7.5), control1: CGPoint(x: 1.049, y: 7.756), control2: CGPoint(x: 1, y: 7.638))
        p.addCurve(to: CGPoint(x: 1.146, y: 7.146), control1: CGPoint(x: 1, y: 7.362), control2: CGPoint(x: 1.049, y: 7.244))
        p.addLine(to: CGPoint(x: 4.146, y: 4.146))
        p.addCurve(to: CGPoint(x: 4.5, y: 3.997), control1: CGPoint(x: 4.246, y: 4.047), control2: CGPoint(x: 4.364, y: 3.997))
        p.addCurve(to: CGPoint(x: 4.854, y: 4.146), control1: CGPoint(x: 4.636, y: 3.997), control2: CGPoint(x: 4.754, y: 4.047))
        p.addCurve(to: CGPoint(x: 5.003, y: 4.5), control1: CGPoint(x: 4.953, y: 4.246), control2: CGPoint(x: 5.003, y: 4.364))
        p.addCurve(to: CGPoint(x: 4.854, y: 4.854), control1: CGPoint(x: 5.003, y: 4.636), control2: CGPoint(x: 4.953, y: 4.754))
        p.addLine(to: CGPoint(x: 2.207, y: 7.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 11.5, y: 11.003))
        p.addCurve(to: CGPoint(x: 11.146, y: 10.854), control1: CGPoint(x: 11.364, y: 11.003), control2: CGPoint(x: 11.246, y: 10.953))
        p.addCurve(to: CGPoint(x: 10.997, y: 10.5), control1: CGPoint(x: 11.047, y: 10.754), control2: CGPoint(x: 10.997, y: 10.636))
        p.addCurve(to: CGPoint(x: 11.146, y: 10.146), control1: CGPoint(x: 10.997, y: 10.364), control2: CGPoint(x: 11.047, y: 10.246))
        p.addLine(to: CGPoint(x: 13.793, y: 7.5))
        p.addLine(to: CGPoint(x: 11.146, y: 4.854))
        p.addCurve(to: CGPoint(x: 11, y: 4.5), control1: CGPoint(x: 11.049, y: 4.756), control2: CGPoint(x: 11, y: 4.638))
        p.addCurve(to: CGPoint(x: 11.146, y: 4.146), control1: CGPoint(x: 11, y: 4.362), control2: CGPoint(x: 11.049, y: 4.244))
        p.addCurve(to: CGPoint(x: 11.5, y: 3.997), control1: CGPoint(x: 11.246, y: 4.047), control2: CGPoint(x: 11.364, y: 3.997))
        p.addCurve(to: CGPoint(x: 11.854, y: 4.146), control1: CGPoint(x: 11.636, y: 3.997), control2: CGPoint(x: 11.754, y: 4.047))
        p.addLine(to: CGPoint(x: 14.854, y: 7.146))
        p.addCurve(to: CGPoint(x: 15.003, y: 7.5), control1: CGPoint(x: 14.953, y: 7.246), control2: CGPoint(x: 15.003, y: 7.364))
        p.addCurve(to: CGPoint(x: 14.854, y: 7.854), control1: CGPoint(x: 15.003, y: 7.636), control2: CGPoint(x: 14.953, y: 7.754))
        p.addLine(to: CGPoint(x: 11.854, y: 10.854))
        p.addCurve(to: CGPoint(x: 11.5, y: 11.003), control1: CGPoint(x: 11.754, y: 10.953), control2: CGPoint(x: 11.636, y: 11.003))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "code" (line-round), MIT. https://gentleface.com/icons/code
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 CodeIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "code", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_code.xml · Gentleface "code" (line-round), MIT. https://gentleface.com/icons/code -->
<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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11.5 11.003C11.364 11.003 11.246 10.953 11.146 10.854C11.047 10.754 10.997 10.636 10.997 10.5C10.997 10.364 11.047 10.246 11.146 10.146L13.793 7.5L11.146 4.854C11.049 4.756 11 4.638 11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L14.854 7.146C14.953 7.246 15.003 7.364 15.003 7.5C15.003 7.636 14.953 7.754 14.854 7.854L11.854 10.854C11.754 10.953 11.636 11.003 11.5 11.003Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(5.947, 12.724)
      ..cubicTo(5.885, 12.847, 5.789, 12.931, 5.658, 12.974)
      ..cubicTo(5.527, 13.018, 5.4, 13.009, 5.276, 12.947)
      ..cubicTo(5.15, 12.884, 5.066, 12.788, 5.023, 12.659)
      ..cubicTo(4.98, 12.53, 4.99, 12.402, 5.053, 12.276)
      ..lineTo(10.053, 2.276)
      ..cubicTo(10.116, 2.15, 10.212, 2.066, 10.341, 2.023)
      ..cubicTo(10.47, 1.98, 10.598, 1.99, 10.724, 2.053)
      ..cubicTo(10.85, 2.116, 10.934, 2.212, 10.977, 2.341)
      ..cubicTo(11.02, 2.47, 11.01, 2.598, 10.947, 2.724)
      ..lineTo(5.947, 12.724)
      ..close()
      ..moveTo(2.207, 7.5)
      ..lineTo(4.854, 10.146)
      ..cubicTo(4.953, 10.246, 5.003, 10.364, 5.003, 10.5)
      ..cubicTo(5.003, 10.636, 4.953, 10.754, 4.854, 10.854)
      ..cubicTo(4.756, 10.951, 4.638, 11, 4.5, 11)
      ..cubicTo(4.362, 11, 4.244, 10.951, 4.146, 10.854)
      ..lineTo(1.146, 7.854)
      ..cubicTo(1.049, 7.756, 1, 7.638, 1, 7.5)
      ..cubicTo(1, 7.362, 1.049, 7.244, 1.146, 7.146)
      ..lineTo(4.146, 4.146)
      ..cubicTo(4.246, 4.047, 4.364, 3.997, 4.5, 3.997)
      ..cubicTo(4.636, 3.997, 4.754, 4.047, 4.854, 4.146)
      ..cubicTo(4.953, 4.246, 5.003, 4.364, 5.003, 4.5)
      ..cubicTo(5.003, 4.636, 4.953, 4.754, 4.854, 4.854)
      ..lineTo(2.207, 7.5)
      ..close()
      ..moveTo(11.5, 11.003)
      ..cubicTo(11.364, 11.003, 11.246, 10.953, 11.146, 10.854)
      ..cubicTo(11.047, 10.754, 10.997, 10.636, 10.997, 10.5)
      ..cubicTo(10.997, 10.364, 11.047, 10.246, 11.146, 10.146)
      ..lineTo(13.793, 7.5)
      ..lineTo(11.146, 4.854)
      ..cubicTo(11.049, 4.756, 11, 4.638, 11, 4.5)
      ..cubicTo(11, 4.362, 11.049, 4.244, 11.146, 4.146)
      ..cubicTo(11.246, 4.047, 11.364, 3.997, 11.5, 3.997)
      ..cubicTo(11.636, 3.997, 11.754, 4.047, 11.854, 4.146)
      ..lineTo(14.854, 7.146)
      ..cubicTo(14.953, 7.246, 15.003, 7.364, 15.003, 7.5)
      ..cubicTo(15.003, 7.636, 14.953, 7.754, 14.854, 7.854)
      ..lineTo(11.854, 10.854)
      ..cubicTo(11.754, 10.953, 11.636, 11.003, 11.5, 11.003)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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