# traffic-light icon

Traffic light. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/traffic-light

- Category: Transportation
- Use it for: traffic light, traffic, traffic conditions, traffic signal, stoplight, traffic jam, congestion, live traffic
- Tags: traffic-light, traffic-signal, stoplight, traffic, signal, intersection, road
- Component name: TrafficLightIcon
- Added: 2026-10-15

## Alternatives

- `bar-chart`: web traffic or visits (analytics)

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

The SVG of every style: https://gentleface.com/icons/traffic-light.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="M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z"/></svg>
```

### React

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

export function TrafficLightIcon(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="M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "traffic-light" (line-round), MIT. https://gentleface.com/icons/traffic-light -->
<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="M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "traffic-light" (line-round), MIT. https://gentleface.com/icons/traffic-light -->
<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="M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "traffic-light" (line-round), MIT. https://gentleface.com/icons/traffic-light. Takes the text color. */
.icon-traffic-light {
  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='M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z'/%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='M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z'/%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='M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct TrafficLightIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 12.856, y: 2.144))
        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.854, y: 2.854), control1: CGPoint(x: 13, y: 2.638), control2: CGPoint(x: 12.951, y: 2.756))
        p.addLine(to: CGPoint(x: 11, y: 4.707))
        p.addLine(to: CGPoint(x: 11, y: 12))
        p.addCurve(to: CGPoint(x: 10.707, y: 12.707), control1: CGPoint(x: 11, y: 12.276), control2: CGPoint(x: 10.902, y: 12.512))
        p.addCurve(to: CGPoint(x: 10, y: 13), control1: CGPoint(x: 10.512, y: 12.902), control2: CGPoint(x: 10.276, y: 13))
        p.addLine(to: CGPoint(x: 9, y: 13))
        p.addLine(to: CGPoint(x: 9, y: 15))
        p.addLine(to: CGPoint(x: 7, y: 15))
        p.addLine(to: CGPoint(x: 7, y: 13))
        p.addLine(to: CGPoint(x: 6, y: 13))
        p.addCurve(to: CGPoint(x: 5.293, y: 12.707), control1: CGPoint(x: 5.724, y: 13), control2: CGPoint(x: 5.488, y: 12.902))
        p.addCurve(to: CGPoint(x: 5, y: 12), control1: CGPoint(x: 5.098, y: 12.512), control2: CGPoint(x: 5, y: 12.276))
        p.addLine(to: CGPoint(x: 5, y: 4.707))
        p.addLine(to: CGPoint(x: 3.146, y: 2.854))
        p.addCurve(to: CGPoint(x: 3, y: 2.5), control1: CGPoint(x: 3.049, y: 2.756), control2: CGPoint(x: 3, y: 2.638))
        p.addCurve(to: CGPoint(x: 3.144, y: 2.144), control1: CGPoint(x: 3, y: 2.359), control2: CGPoint(x: 3.048, y: 2.241))
        p.addCurve(to: CGPoint(x: 3.5, y: 2), control1: CGPoint(x: 3.241, y: 2.048), control2: CGPoint(x: 3.359, y: 2))
        p.addLine(to: CGPoint(x: 5, y: 2))
        p.addCurve(to: CGPoint(x: 5.293, y: 1.293), control1: CGPoint(x: 5, y: 1.724), control2: CGPoint(x: 5.098, y: 1.488))
        p.addCurve(to: CGPoint(x: 6, y: 1), control1: CGPoint(x: 5.488, y: 1.098), control2: CGPoint(x: 5.724, y: 1))
        p.addLine(to: CGPoint(x: 10, y: 1))
        p.addCurve(to: CGPoint(x: 10.707, y: 1.293), control1: CGPoint(x: 10.276, y: 1), control2: CGPoint(x: 10.512, y: 1.098))
        p.addCurve(to: CGPoint(x: 11, y: 2), control1: CGPoint(x: 10.902, y: 1.488), control2: CGPoint(x: 11, y: 1.724))
        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.closeSubpath()
        p.move(to: CGPoint(x: 10, y: 2))
        p.addLine(to: CGPoint(x: 6, y: 2))
        p.addLine(to: CGPoint(x: 6, y: 12))
        p.addLine(to: CGPoint(x: 10, y: 12))
        p.addLine(to: CGPoint(x: 10, y: 2))
        p.closeSubpath()
        p.move(to: CGPoint(x: 4.707, y: 3))
        p.addLine(to: CGPoint(x: 5, y: 3.293))
        p.addLine(to: CGPoint(x: 5, y: 3))
        p.addLine(to: CGPoint(x: 4.707, y: 3))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.707, y: 3.293))
        p.addCurve(to: CGPoint(x: 9, y: 4), control1: CGPoint(x: 8.902, y: 3.488), control2: CGPoint(x: 9, y: 3.724))
        p.addCurve(to: CGPoint(x: 8.707, y: 4.707), control1: CGPoint(x: 9, y: 4.276), control2: CGPoint(x: 8.902, y: 4.512))
        p.addCurve(to: CGPoint(x: 8, y: 5), control1: CGPoint(x: 8.512, y: 4.902), control2: CGPoint(x: 8.276, y: 5))
        p.addCurve(to: CGPoint(x: 7.293, y: 4.707), control1: CGPoint(x: 7.724, y: 5), control2: CGPoint(x: 7.488, y: 4.902))
        p.addCurve(to: CGPoint(x: 7, y: 4), control1: CGPoint(x: 7.098, y: 4.512), control2: CGPoint(x: 7, y: 4.276))
        p.addCurve(to: CGPoint(x: 7.293, y: 3.293), control1: CGPoint(x: 7, y: 3.724), control2: CGPoint(x: 7.098, y: 3.488))
        p.addCurve(to: CGPoint(x: 8, y: 3), control1: CGPoint(x: 7.488, y: 3.098), control2: CGPoint(x: 7.724, y: 3))
        p.addCurve(to: CGPoint(x: 8.707, y: 3.293), control1: CGPoint(x: 8.276, y: 3), control2: CGPoint(x: 8.512, y: 3.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 11.293, y: 3))
        p.addLine(to: CGPoint(x: 11, y: 3))
        p.addLine(to: CGPoint(x: 11, y: 3.293))
        p.addLine(to: CGPoint(x: 11.293, y: 3))
        p.closeSubpath()
        p.move(to: CGPoint(x: 8.707, y: 6.293))
        p.addCurve(to: CGPoint(x: 9, y: 7), control1: CGPoint(x: 8.902, y: 6.488), control2: CGPoint(x: 9, y: 6.724))
        p.addCurve(to: CGPoint(x: 8.707, y: 7.707), control1: CGPoint(x: 9, y: 7.276), control2: CGPoint(x: 8.902, y: 7.512))
        p.addCurve(to: CGPoint(x: 8, y: 8), control1: CGPoint(x: 8.512, y: 7.902), control2: CGPoint(x: 8.276, y: 8))
        p.addCurve(to: CGPoint(x: 7.293, y: 7.707), control1: CGPoint(x: 7.724, y: 8), control2: CGPoint(x: 7.488, y: 7.902))
        p.addCurve(to: CGPoint(x: 7, y: 7), control1: CGPoint(x: 7.098, y: 7.512), control2: CGPoint(x: 7, y: 7.276))
        p.addCurve(to: CGPoint(x: 7.293, y: 6.293), control1: CGPoint(x: 7, y: 6.724), control2: CGPoint(x: 7.098, y: 6.488))
        p.addCurve(to: CGPoint(x: 8, y: 6), control1: CGPoint(x: 7.488, y: 6.098), control2: CGPoint(x: 7.724, y: 6))
        p.addCurve(to: CGPoint(x: 8.707, y: 6.293), control1: CGPoint(x: 8.276, y: 6), control2: CGPoint(x: 8.512, y: 6.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 7.293, y: 9.293))
        p.addCurve(to: CGPoint(x: 8, y: 9), control1: CGPoint(x: 7.488, y: 9.098), control2: CGPoint(x: 7.724, y: 9))
        p.addCurve(to: CGPoint(x: 8.707, y: 9.293), control1: CGPoint(x: 8.276, y: 9), control2: CGPoint(x: 8.512, y: 9.098))
        p.addCurve(to: CGPoint(x: 9, y: 10), control1: CGPoint(x: 8.902, y: 9.488), control2: CGPoint(x: 9, y: 9.724))
        p.addCurve(to: CGPoint(x: 8.707, y: 10.707), control1: CGPoint(x: 9, y: 10.276), control2: CGPoint(x: 8.902, y: 10.512))
        p.addCurve(to: CGPoint(x: 8, y: 11), control1: CGPoint(x: 8.512, y: 10.902), control2: CGPoint(x: 8.276, y: 11))
        p.addCurve(to: CGPoint(x: 7.293, y: 10.707), control1: CGPoint(x: 7.724, y: 11), control2: CGPoint(x: 7.488, y: 10.902))
        p.addCurve(to: CGPoint(x: 7, y: 10), control1: CGPoint(x: 7.098, y: 10.512), control2: CGPoint(x: 7, y: 10.276))
        p.addCurve(to: CGPoint(x: 7.293, y: 9.293), control1: CGPoint(x: 7, y: 9.724), control2: CGPoint(x: 7.098, y: 9.488))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "traffic-light" (line-round), MIT. https://gentleface.com/icons/traffic-light
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 TrafficLightIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "traffic-light", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_traffic_light.xml · Gentleface "traffic-light" (line-round), MIT. https://gentleface.com/icons/traffic-light -->
<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="M12.856 2.144C12.952 2.241 13 2.359 13 2.5C13 2.638 12.951 2.756 12.854 2.854L11 4.707L11 12C11 12.276 10.902 12.512 10.707 12.707C10.512 12.902 10.276 13 10 13L9 13L9 15L7 15L7 13L6 13C5.724 13 5.488 12.902 5.293 12.707C5.098 12.512 5 12.276 5 12L5 4.707L3.146 2.854C3.049 2.756 3 2.638 3 2.5C3 2.359 3.048 2.241 3.144 2.144C3.241 2.048 3.359 2 3.5 2L5 2C5 1.724 5.098 1.488 5.293 1.293C5.488 1.098 5.724 1 6 1L10 1C10.276 1 10.512 1.098 10.707 1.293C10.902 1.488 11 1.724 11 2L12.5 2C12.641 2 12.759 2.048 12.856 2.144ZM10 2L6 2L6 12L10 12L10 2ZM4.707 3L5 3.293L5 3L4.707 3ZM8.707 3.293C8.902 3.488 9 3.724 9 4C9 4.276 8.902 4.512 8.707 4.707C8.512 4.902 8.276 5 8 5C7.724 5 7.488 4.902 7.293 4.707C7.098 4.512 7 4.276 7 4C7 3.724 7.098 3.488 7.293 3.293C7.488 3.098 7.724 3 8 3C8.276 3 8.512 3.098 8.707 3.293ZM11.293 3L11 3L11 3.293L11.293 3ZM8.707 6.293C8.902 6.488 9 6.724 9 7C9 7.276 8.902 7.512 8.707 7.707C8.512 7.902 8.276 8 8 8C7.724 8 7.488 7.902 7.293 7.707C7.098 7.512 7 7.276 7 7C7 6.724 7.098 6.488 7.293 6.293C7.488 6.098 7.724 6 8 6C8.276 6 8.512 6.098 8.707 6.293ZM7.293 9.293C7.488 9.098 7.724 9 8 9C8.276 9 8.512 9.098 8.707 9.293C8.902 9.488 9 9.724 9 10C9 10.276 8.902 10.512 8.707 10.707C8.512 10.902 8.276 11 8 11C7.724 11 7.488 10.902 7.293 10.707C7.098 10.512 7 10.276 7 10C7 9.724 7.098 9.488 7.293 9.293Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(12.856, 2.144)
      ..cubicTo(12.952, 2.241, 13, 2.359, 13, 2.5)
      ..cubicTo(13, 2.638, 12.951, 2.756, 12.854, 2.854)
      ..lineTo(11, 4.707)
      ..lineTo(11, 12)
      ..cubicTo(11, 12.276, 10.902, 12.512, 10.707, 12.707)
      ..cubicTo(10.512, 12.902, 10.276, 13, 10, 13)
      ..lineTo(9, 13)
      ..lineTo(9, 15)
      ..lineTo(7, 15)
      ..lineTo(7, 13)
      ..lineTo(6, 13)
      ..cubicTo(5.724, 13, 5.488, 12.902, 5.293, 12.707)
      ..cubicTo(5.098, 12.512, 5, 12.276, 5, 12)
      ..lineTo(5, 4.707)
      ..lineTo(3.146, 2.854)
      ..cubicTo(3.049, 2.756, 3, 2.638, 3, 2.5)
      ..cubicTo(3, 2.359, 3.048, 2.241, 3.144, 2.144)
      ..cubicTo(3.241, 2.048, 3.359, 2, 3.5, 2)
      ..lineTo(5, 2)
      ..cubicTo(5, 1.724, 5.098, 1.488, 5.293, 1.293)
      ..cubicTo(5.488, 1.098, 5.724, 1, 6, 1)
      ..lineTo(10, 1)
      ..cubicTo(10.276, 1, 10.512, 1.098, 10.707, 1.293)
      ..cubicTo(10.902, 1.488, 11, 1.724, 11, 2)
      ..lineTo(12.5, 2)
      ..cubicTo(12.641, 2, 12.759, 2.048, 12.856, 2.144)
      ..close()
      ..moveTo(10, 2)
      ..lineTo(6, 2)
      ..lineTo(6, 12)
      ..lineTo(10, 12)
      ..lineTo(10, 2)
      ..close()
      ..moveTo(4.707, 3)
      ..lineTo(5, 3.293)
      ..lineTo(5, 3)
      ..lineTo(4.707, 3)
      ..close()
      ..moveTo(8.707, 3.293)
      ..cubicTo(8.902, 3.488, 9, 3.724, 9, 4)
      ..cubicTo(9, 4.276, 8.902, 4.512, 8.707, 4.707)
      ..cubicTo(8.512, 4.902, 8.276, 5, 8, 5)
      ..cubicTo(7.724, 5, 7.488, 4.902, 7.293, 4.707)
      ..cubicTo(7.098, 4.512, 7, 4.276, 7, 4)
      ..cubicTo(7, 3.724, 7.098, 3.488, 7.293, 3.293)
      ..cubicTo(7.488, 3.098, 7.724, 3, 8, 3)
      ..cubicTo(8.276, 3, 8.512, 3.098, 8.707, 3.293)
      ..close()
      ..moveTo(11.293, 3)
      ..lineTo(11, 3)
      ..lineTo(11, 3.293)
      ..lineTo(11.293, 3)
      ..close()
      ..moveTo(8.707, 6.293)
      ..cubicTo(8.902, 6.488, 9, 6.724, 9, 7)
      ..cubicTo(9, 7.276, 8.902, 7.512, 8.707, 7.707)
      ..cubicTo(8.512, 7.902, 8.276, 8, 8, 8)
      ..cubicTo(7.724, 8, 7.488, 7.902, 7.293, 7.707)
      ..cubicTo(7.098, 7.512, 7, 7.276, 7, 7)
      ..cubicTo(7, 6.724, 7.098, 6.488, 7.293, 6.293)
      ..cubicTo(7.488, 6.098, 7.724, 6, 8, 6)
      ..cubicTo(8.276, 6, 8.512, 6.098, 8.707, 6.293)
      ..close()
      ..moveTo(7.293, 9.293)
      ..cubicTo(7.488, 9.098, 7.724, 9, 8, 9)
      ..cubicTo(8.276, 9, 8.512, 9.098, 8.707, 9.293)
      ..cubicTo(8.902, 9.488, 9, 9.724, 9, 10)
      ..cubicTo(9, 10.276, 8.902, 10.512, 8.707, 10.707)
      ..cubicTo(8.512, 10.902, 8.276, 11, 8, 11)
      ..cubicTo(7.724, 11, 7.488, 10.902, 7.293, 10.707)
      ..cubicTo(7.098, 10.512, 7, 10.276, 7, 10)
      ..cubicTo(7, 9.724, 7.098, 9.488, 7.293, 9.293)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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