gentleface

Gentleface › Shapes › polygon

polygon icon

Polygon: polygon, polygon tool. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Code line-round

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="M15 6L15 9L13.309 9L11.809 12L12 12L12 15L9 15L9 12.707L3.293 7L1 7L1 4L1.499 4L1.5 4L4 4L4 4.191L7 2.691L7 1L10 1L10 3.293L12.707 6L15 6ZM9.293 4L7 4L7 3.809L4 5.309L4 6.293L9.707 12L10.691 12L12.191 9L12 9L12 6.707L9.293 4Z"/></svg>
React
// Gentleface "polygon" (line-round), MIT. https://gentleface.com/icons/polygon
import type { SVGProps } from 'react';

export function PolygonIcon(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="M15 6L15 9L13.309 9L11.809 12L12 12L12 15L9 15L9 12.707L3.293 7L1 7L1 4L1.499 4L1.5 4L4 4L4 4.191L7 2.691L7 1L10 1L10 3.293L12.707 6L15 6ZM9.293 4L7 4L7 3.809L4 5.309L4 6.293L9.707 12L10.691 12L12.191 9L12 9L12 6.707L9.293 4Z" />
    </svg>
  );
}
Vue
Vue: see /icons/polygon.md
Svelte
Svelte: see /icons/polygon.md
HTML img
HTML img: see /icons/polygon.md
CSS
CSS: see /icons/polygon.md
Data URL
Data URL: see /icons/polygon.md
Sprite
Sprite: see /icons/polygon.md
SwiftUI
SwiftUI: see /icons/polygon.md
Compose
Compose: see /icons/polygon.md
Android XML
Android XML: see /icons/polygon.md
Flutter
Flutter: see /icons/polygon.md

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too. 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. More in how to use.

With npm: import { PolygonIcon } from '@gentleface/react'; (setup).

Meaning

Use it for
polygon, polygon tool
Alternatives
  • pen-tool: draw free vector paths with the pen (pen-tool)
Tags
polygon, shape, vector, vertices, nodes, anchor, polygon-tool, geometry
Category
Shapes
Component name
PolygonIcon
History
  • added, released in 0.1.0
  • 20 px drawn, 24 px drawn
Since
version 0.1.0

More shapes icons

For agents

Metadata: /icons/polygon.json · Markdown: /icons/polygon.md · SVG: https://gentleface.com/svg/{style}/16/polygon.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/polygon.png