# cube icon

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

- Category: Shapes
- Use it for: cube, 3d shape
- Tags: cube, 3d, shape, solid, isometric, block, geometry
- Component name: CubeIcon
- Added: 2026-10-15

## Alternatives

- `package`: a package, a parcel or a product (package); motifs.yaml gives 3d-object to the box motif

## Also fits

- 3d model file: a 3D object or shape in a scene (3d-shape)
- augmented reality: a 3D shape or object (3d-shape)

## Not for

- package (use `package`): a 3D shape, not a parcel

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

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

## Code (line-round)

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

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z"/></svg>
```

### React

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

export function CubeIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "cube" (line-round), MIT. https://gentleface.com/icons/cube -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z" />
  </svg>
</template>
```

### Svelte

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

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "cube" (line-round), MIT. https://gentleface.com/icons/cube. Takes the text color. */
.icon-cube {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct CubeIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 13.701, y: 11.624))
        p.addCurve(to: CGPoint(x: 12.894, y: 12.362), control1: CGPoint(x: 13.502, y: 11.947), control2: CGPoint(x: 13.233, y: 12.192))
        p.addLine(to: CGPoint(x: 8.618, y: 14.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 14.764), control1: CGPoint(x: 8.266, y: 14.676), control2: CGPoint(x: 7.893, y: 14.764))
        p.addCurve(to: CGPoint(x: 6.382, y: 14.5), control1: CGPoint(x: 7.107, y: 14.764), control2: CGPoint(x: 6.734, y: 14.676))
        p.addLine(to: CGPoint(x: 2.106, y: 12.362))
        p.addCurve(to: CGPoint(x: 1.299, y: 11.624), control1: CGPoint(x: 1.767, y: 12.192), control2: CGPoint(x: 1.498, y: 11.947))
        p.addCurve(to: CGPoint(x: 1, y: 10.573), control1: CGPoint(x: 1.1, y: 11.302), control2: CGPoint(x: 1, y: 10.952))
        p.addLine(to: CGPoint(x: 1, y: 5.427))
        p.addCurve(to: CGPoint(x: 1.299, y: 4.376), control1: CGPoint(x: 1, y: 5.048), control2: CGPoint(x: 1.1, y: 4.698))
        p.addCurve(to: CGPoint(x: 2.106, y: 3.638), control1: CGPoint(x: 1.498, y: 4.053), control2: CGPoint(x: 1.767, y: 3.808))
        p.addLine(to: CGPoint(x: 6.382, y: 1.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 1.236), control1: CGPoint(x: 6.734, y: 1.324), control2: CGPoint(x: 7.107, y: 1.236))
        p.addCurve(to: CGPoint(x: 8.618, y: 1.5), control1: CGPoint(x: 7.893, y: 1.236), control2: CGPoint(x: 8.266, y: 1.324))
        p.addLine(to: CGPoint(x: 12.894, y: 3.638))
        p.addCurve(to: CGPoint(x: 13.701, y: 4.376), control1: CGPoint(x: 13.233, y: 3.808), control2: CGPoint(x: 13.502, y: 4.053))
        p.addCurve(to: CGPoint(x: 14, y: 5.427), control1: CGPoint(x: 13.9, y: 4.698), control2: CGPoint(x: 14, y: 5.048))
        p.addLine(to: CGPoint(x: 14, y: 10.573))
        p.addCurve(to: CGPoint(x: 13.701, y: 11.624), control1: CGPoint(x: 14, y: 10.952), control2: CGPoint(x: 13.9, y: 11.302))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.618, y: 4.5))
        p.addLine(to: CGPoint(x: 6.829, y: 6.606))
        p.addCurve(to: CGPoint(x: 7.5, y: 6.764), control1: CGPoint(x: 7.04, y: 6.711), control2: CGPoint(x: 7.264, y: 6.764))
        p.addCurve(to: CGPoint(x: 8.171, y: 6.606), control1: CGPoint(x: 7.736, y: 6.764), control2: CGPoint(x: 7.96, y: 6.711))
        p.addLine(to: CGPoint(x: 12.382, y: 4.5))
        p.addLine(to: CGPoint(x: 8.171, y: 2.394))
        p.addCurve(to: CGPoint(x: 7.5, y: 2.236), control1: CGPoint(x: 7.96, y: 2.289), control2: CGPoint(x: 7.736, y: 2.236))
        p.addCurve(to: CGPoint(x: 6.829, y: 2.394), control1: CGPoint(x: 7.264, y: 2.236), control2: CGPoint(x: 7.04, y: 2.289))
        p.addLine(to: CGPoint(x: 2.618, y: 4.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.006, y: 5.312))
        p.addCurve(to: CGPoint(x: 2, y: 5.427), control1: CGPoint(x: 2.002, y: 5.35), control2: CGPoint(x: 2, y: 5.388))
        p.addLine(to: CGPoint(x: 2, y: 10.573))
        p.addCurve(to: CGPoint(x: 2.149, y: 11.099), control1: CGPoint(x: 2, y: 10.762), control2: CGPoint(x: 2.05, y: 10.938))
        p.addCurve(to: CGPoint(x: 2.553, y: 11.467), control1: CGPoint(x: 2.249, y: 11.26), control2: CGPoint(x: 2.383, y: 11.383))
        p.addLine(to: CGPoint(x: 6.829, y: 13.606))
        p.addCurve(to: CGPoint(x: 7, y: 13.679), control1: CGPoint(x: 6.885, y: 13.634), control2: CGPoint(x: 6.942, y: 13.658))
        p.addLine(to: CGPoint(x: 7, y: 7.714))
        p.addCurve(to: CGPoint(x: 6.382, y: 7.5), control1: CGPoint(x: 6.787, y: 7.671), control2: CGPoint(x: 6.581, y: 7.6))
        p.addLine(to: CGPoint(x: 2.006, y: 5.312))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.171, y: 13.606))
        p.addLine(to: CGPoint(x: 12.447, y: 11.467))
        p.addCurve(to: CGPoint(x: 12.851, y: 11.099), control1: CGPoint(x: 12.617, y: 11.383), control2: CGPoint(x: 12.751, y: 11.26))
        p.addCurve(to: CGPoint(x: 13, y: 10.573), control1: CGPoint(x: 12.95, y: 10.938), control2: CGPoint(x: 13, y: 10.762))
        p.addLine(to: CGPoint(x: 13, y: 5.427))
        p.addCurve(to: CGPoint(x: 12.994, y: 5.312), control1: CGPoint(x: 13, y: 5.388), control2: CGPoint(x: 12.998, y: 5.35))
        p.addLine(to: CGPoint(x: 8.618, y: 7.5))
        p.addCurve(to: CGPoint(x: 8, y: 7.714), control1: CGPoint(x: 8.419, y: 7.6), control2: CGPoint(x: 8.213, y: 7.671))
        p.addLine(to: CGPoint(x: 8, y: 13.679))
        p.addCurve(to: CGPoint(x: 8.171, y: 13.606), control1: CGPoint(x: 8.058, y: 13.658), control2: CGPoint(x: 8.115, y: 13.634))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "cube" (line-round), MIT. https://gentleface.com/icons/cube
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 CubeIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "cube", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_cube.xml · Gentleface "cube" (line-round), MIT. https://gentleface.com/icons/cube -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M13.701 11.624C13.502 11.947 13.233 12.192 12.894 12.362L8.618 14.5C8.266 14.676 7.893 14.764 7.5 14.764C7.107 14.764 6.734 14.676 6.382 14.5L2.106 12.362C1.767 12.192 1.498 11.947 1.299 11.624C1.1 11.302 1 10.952 1 10.573L1 5.427C1 5.048 1.1 4.698 1.299 4.376C1.498 4.053 1.767 3.808 2.106 3.638L6.382 1.5C6.734 1.324 7.107 1.236 7.5 1.236C7.893 1.236 8.266 1.324 8.618 1.5L12.894 3.638C13.233 3.808 13.502 4.053 13.701 4.376C13.9 4.698 14 5.048 14 5.427L14 10.573C14 10.952 13.9 11.302 13.701 11.624ZM2.618 4.5L6.829 6.606C7.04 6.711 7.264 6.764 7.5 6.764C7.736 6.764 7.96 6.711 8.171 6.606L12.382 4.5L8.171 2.394C7.96 2.289 7.736 2.236 7.5 2.236C7.264 2.236 7.04 2.289 6.829 2.394L2.618 4.5ZM2.006 5.312C2.002 5.35 2 5.388 2 5.427L2 10.573C2 10.762 2.05 10.938 2.149 11.099C2.249 11.26 2.383 11.383 2.553 11.467L6.829 13.606C6.885 13.634 6.942 13.658 7 13.679L7 7.714C6.787 7.671 6.581 7.6 6.382 7.5L2.006 5.312ZM8.171 13.606L12.447 11.467C12.617 11.383 12.751 11.26 12.851 11.099C12.95 10.938 13 10.762 13 10.573L13 5.427C13 5.388 12.998 5.35 12.994 5.312L8.618 7.5C8.419 7.6 8.213 7.671 8 7.714L8 13.679C8.058 13.658 8.115 13.634 8.171 13.606Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(13.701, 11.624)
      ..cubicTo(13.502, 11.947, 13.233, 12.192, 12.894, 12.362)
      ..lineTo(8.618, 14.5)
      ..cubicTo(8.266, 14.676, 7.893, 14.764, 7.5, 14.764)
      ..cubicTo(7.107, 14.764, 6.734, 14.676, 6.382, 14.5)
      ..lineTo(2.106, 12.362)
      ..cubicTo(1.767, 12.192, 1.498, 11.947, 1.299, 11.624)
      ..cubicTo(1.1, 11.302, 1, 10.952, 1, 10.573)
      ..lineTo(1, 5.427)
      ..cubicTo(1, 5.048, 1.1, 4.698, 1.299, 4.376)
      ..cubicTo(1.498, 4.053, 1.767, 3.808, 2.106, 3.638)
      ..lineTo(6.382, 1.5)
      ..cubicTo(6.734, 1.324, 7.107, 1.236, 7.5, 1.236)
      ..cubicTo(7.893, 1.236, 8.266, 1.324, 8.618, 1.5)
      ..lineTo(12.894, 3.638)
      ..cubicTo(13.233, 3.808, 13.502, 4.053, 13.701, 4.376)
      ..cubicTo(13.9, 4.698, 14, 5.048, 14, 5.427)
      ..lineTo(14, 10.573)
      ..cubicTo(14, 10.952, 13.9, 11.302, 13.701, 11.624)
      ..close()
      ..moveTo(2.618, 4.5)
      ..lineTo(6.829, 6.606)
      ..cubicTo(7.04, 6.711, 7.264, 6.764, 7.5, 6.764)
      ..cubicTo(7.736, 6.764, 7.96, 6.711, 8.171, 6.606)
      ..lineTo(12.382, 4.5)
      ..lineTo(8.171, 2.394)
      ..cubicTo(7.96, 2.289, 7.736, 2.236, 7.5, 2.236)
      ..cubicTo(7.264, 2.236, 7.04, 2.289, 6.829, 2.394)
      ..lineTo(2.618, 4.5)
      ..close()
      ..moveTo(2.006, 5.312)
      ..cubicTo(2.002, 5.35, 2, 5.388, 2, 5.427)
      ..lineTo(2, 10.573)
      ..cubicTo(2, 10.762, 2.05, 10.938, 2.149, 11.099)
      ..cubicTo(2.249, 11.26, 2.383, 11.383, 2.553, 11.467)
      ..lineTo(6.829, 13.606)
      ..cubicTo(6.885, 13.634, 6.942, 13.658, 7, 13.679)
      ..lineTo(7, 7.714)
      ..cubicTo(6.787, 7.671, 6.581, 7.6, 6.382, 7.5)
      ..lineTo(2.006, 5.312)
      ..close()
      ..moveTo(8.171, 13.606)
      ..lineTo(12.447, 11.467)
      ..cubicTo(12.617, 11.383, 12.751, 11.26, 12.851, 11.099)
      ..cubicTo(12.95, 10.938, 13, 10.762, 13, 10.573)
      ..lineTo(13, 5.427)
      ..cubicTo(13, 5.388, 12.998, 5.35, 12.994, 5.312)
      ..lineTo(8.618, 7.5)
      ..cubicTo(8.419, 7.6, 8.213, 7.671, 8, 7.714)
      ..lineTo(8, 13.679)
      ..cubicTo(8.058, 13.658, 8.115, 13.634, 8.171, 13.606)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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