# co2 icon

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

- Category: Nature & animals
- Use it for: co2, carbon dioxide, carbon emissions, carbon footprint
- Tags: co2, carbon dioxide, carbon, emissions, carbon emissions, carbon footprint, greenhouse gas, climate, air quality, sensor, pollution, formula
- Component name: Co2Icon
- Added: 2026-10-29
- Since: version 0.2.0
- npm: `import { Co2Icon } from '@gentleface/react';` (@gentleface/react 0.2.0)
- Changed: 2026-10-30 (added)

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

The SVG of every style: https://gentleface.com/icons/co2.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="M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z"/></svg>
```

### React

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

export function Co2Icon(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="M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "co2" (line-round), MIT. https://gentleface.com/icons/co2 -->
<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="M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "co2" (line-round), MIT. https://gentleface.com/icons/co2 -->
<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="M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "co2" (line-round), MIT. https://gentleface.com/icons/co2. Takes the text color. */
.icon-co2 {
  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='M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z'/%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='M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z'/%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='M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct Co2Icon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 2.293, y: 3.293))
        p.addCurve(to: CGPoint(x: 2, y: 4), control1: CGPoint(x: 2.098, y: 3.488), control2: CGPoint(x: 2, y: 3.724))
        p.addLine(to: CGPoint(x: 2, y: 9))
        p.addCurve(to: CGPoint(x: 2.293, y: 9.707), control1: CGPoint(x: 2, y: 9.276), control2: CGPoint(x: 2.098, y: 9.512))
        p.addCurve(to: CGPoint(x: 3, y: 10), control1: CGPoint(x: 2.488, y: 9.902), control2: CGPoint(x: 2.724, y: 10))
        p.addLine(to: CGPoint(x: 4.5, y: 10))
        p.addCurve(to: CGPoint(x: 4.856, y: 10.144), control1: CGPoint(x: 4.641, y: 10), control2: CGPoint(x: 4.759, y: 10.048))
        p.addCurve(to: CGPoint(x: 5, y: 10.5), control1: CGPoint(x: 4.952, y: 10.241), control2: CGPoint(x: 5, y: 10.359))
        p.addCurve(to: CGPoint(x: 4.856, y: 10.856), control1: CGPoint(x: 5, y: 10.641), control2: CGPoint(x: 4.952, y: 10.759))
        p.addCurve(to: CGPoint(x: 4.5, y: 11), control1: CGPoint(x: 4.759, y: 10.952), control2: CGPoint(x: 4.641, y: 11))
        p.addLine(to: CGPoint(x: 3, y: 11))
        p.addCurve(to: CGPoint(x: 2.264, y: 10.86), control1: CGPoint(x: 2.746, y: 11), control2: CGPoint(x: 2.5, y: 10.953))
        p.addCurve(to: CGPoint(x: 1.586, y: 10.414), control1: CGPoint(x: 2.007, y: 10.758), control2: CGPoint(x: 1.781, y: 10.609))
        p.addCurve(to: CGPoint(x: 1.14, y: 9.736), control1: CGPoint(x: 1.391, y: 10.219), control2: CGPoint(x: 1.242, y: 9.993))
        p.addCurve(to: CGPoint(x: 1, y: 9), control1: CGPoint(x: 1.047, y: 9.5), control2: CGPoint(x: 1, y: 9.254))
        p.addLine(to: CGPoint(x: 1, y: 4))
        p.addCurve(to: CGPoint(x: 1.14, y: 3.264), control1: CGPoint(x: 1, y: 3.746), control2: CGPoint(x: 1.047, y: 3.5))
        p.addCurve(to: CGPoint(x: 1.586, y: 2.586), control1: CGPoint(x: 1.242, y: 3.007), control2: CGPoint(x: 1.391, y: 2.781))
        p.addCurve(to: CGPoint(x: 2.264, y: 2.14), control1: CGPoint(x: 1.781, y: 2.391), control2: CGPoint(x: 2.007, y: 2.242))
        p.addCurve(to: CGPoint(x: 3, y: 2), control1: CGPoint(x: 2.5, y: 2.047), control2: CGPoint(x: 2.746, y: 2))
        p.addLine(to: CGPoint(x: 4.5, y: 2))
        p.addCurve(to: CGPoint(x: 4.856, y: 2.144), control1: CGPoint(x: 4.641, y: 2), control2: CGPoint(x: 4.759, y: 2.048))
        p.addCurve(to: CGPoint(x: 5, y: 2.5), control1: CGPoint(x: 4.952, y: 2.241), control2: CGPoint(x: 5, y: 2.359))
        p.addCurve(to: CGPoint(x: 4.856, y: 2.856), control1: CGPoint(x: 5, y: 2.641), control2: CGPoint(x: 4.952, y: 2.759))
        p.addCurve(to: CGPoint(x: 4.5, y: 3), control1: CGPoint(x: 4.759, y: 2.952), control2: CGPoint(x: 4.641, y: 3))
        p.addLine(to: CGPoint(x: 3, y: 3))
        p.addCurve(to: CGPoint(x: 2.293, y: 3.293), control1: CGPoint(x: 2.724, y: 3), control2: CGPoint(x: 2.488, y: 3.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 9.86, y: 9.736))
        p.addCurve(to: CGPoint(x: 9.414, y: 10.414), control1: CGPoint(x: 9.758, y: 9.993), control2: CGPoint(x: 9.609, y: 10.219))
        p.addCurve(to: CGPoint(x: 8.736, y: 10.86), control1: CGPoint(x: 9.219, y: 10.609), control2: CGPoint(x: 8.993, y: 10.758))
        p.addCurve(to: CGPoint(x: 8, y: 11), control1: CGPoint(x: 8.5, y: 10.953), control2: CGPoint(x: 8.254, y: 11))
        p.addCurve(to: CGPoint(x: 7.264, y: 10.86), control1: CGPoint(x: 7.746, y: 11), control2: CGPoint(x: 7.5, y: 10.953))
        p.addCurve(to: CGPoint(x: 6.586, y: 10.414), control1: CGPoint(x: 7.007, y: 10.758), control2: CGPoint(x: 6.781, y: 10.609))
        p.addCurve(to: CGPoint(x: 6.14, y: 9.736), control1: CGPoint(x: 6.391, y: 10.219), control2: CGPoint(x: 6.242, y: 9.993))
        p.addCurve(to: CGPoint(x: 6, y: 9), control1: CGPoint(x: 6.047, y: 9.5), control2: CGPoint(x: 6, y: 9.254))
        p.addLine(to: CGPoint(x: 6, y: 4))
        p.addCurve(to: CGPoint(x: 6.14, y: 3.264), control1: CGPoint(x: 6, y: 3.746), control2: CGPoint(x: 6.047, y: 3.5))
        p.addCurve(to: CGPoint(x: 6.586, y: 2.586), control1: CGPoint(x: 6.242, y: 3.007), control2: CGPoint(x: 6.391, y: 2.781))
        p.addCurve(to: CGPoint(x: 7.264, y: 2.14), control1: CGPoint(x: 6.781, y: 2.391), control2: CGPoint(x: 7.007, y: 2.242))
        p.addCurve(to: CGPoint(x: 8, y: 2), control1: CGPoint(x: 7.5, y: 2.047), control2: CGPoint(x: 7.746, y: 2))
        p.addCurve(to: CGPoint(x: 8.736, y: 2.14), control1: CGPoint(x: 8.254, y: 2), control2: CGPoint(x: 8.5, y: 2.047))
        p.addCurve(to: CGPoint(x: 9.414, y: 2.586), control1: CGPoint(x: 8.993, y: 2.242), control2: CGPoint(x: 9.219, y: 2.391))
        p.addCurve(to: CGPoint(x: 9.86, y: 3.264), control1: CGPoint(x: 9.609, y: 2.781), control2: CGPoint(x: 9.758, y: 3.007))
        p.addCurve(to: CGPoint(x: 10, y: 4), control1: CGPoint(x: 9.953, y: 3.5), control2: CGPoint(x: 10, y: 3.746))
        p.addLine(to: CGPoint(x: 10, y: 9))
        p.addCurve(to: CGPoint(x: 9.86, y: 9.736), control1: CGPoint(x: 10, y: 9.254), control2: CGPoint(x: 9.953, y: 9.5))
        p.closeSubpath()
        p.move(to: CGPoint(x: 7.293, y: 9.707))
        p.addCurve(to: CGPoint(x: 8, y: 10), control1: CGPoint(x: 7.488, y: 9.902), control2: CGPoint(x: 7.724, y: 10))
        p.addCurve(to: CGPoint(x: 8.707, y: 9.707), control1: CGPoint(x: 8.276, y: 10), control2: CGPoint(x: 8.512, y: 9.902))
        p.addCurve(to: CGPoint(x: 9, y: 9), control1: CGPoint(x: 8.902, y: 9.512), control2: CGPoint(x: 9, y: 9.276))
        p.addLine(to: CGPoint(x: 9, y: 4))
        p.addCurve(to: CGPoint(x: 8.707, y: 3.293), control1: CGPoint(x: 9, y: 3.724), control2: CGPoint(x: 8.902, y: 3.488))
        p.addCurve(to: CGPoint(x: 8, y: 3), control1: CGPoint(x: 8.512, y: 3.098), control2: CGPoint(x: 8.276, y: 3))
        p.addCurve(to: CGPoint(x: 7.293, y: 3.293), control1: CGPoint(x: 7.724, y: 3), control2: CGPoint(x: 7.488, y: 3.098))
        p.addCurve(to: CGPoint(x: 7, y: 4), control1: CGPoint(x: 7.098, y: 3.488), control2: CGPoint(x: 7, y: 3.724))
        p.addLine(to: CGPoint(x: 7, y: 9))
        p.addCurve(to: CGPoint(x: 7.293, y: 9.707), control1: CGPoint(x: 7, y: 9.276), control2: CGPoint(x: 7.098, y: 9.512))
        p.closeSubpath()
        p.move(to: CGPoint(x: 13.854, y: 8.146))
        p.addLine(to: CGPoint(x: 14.854, y: 9.146))
        p.addCurve(to: CGPoint(x: 15.003, y: 9.5), control1: CGPoint(x: 14.953, y: 9.246), control2: CGPoint(x: 15.003, y: 9.364))
        p.addCurve(to: CGPoint(x: 14.854, y: 9.854), control1: CGPoint(x: 15.003, y: 9.636), control2: CGPoint(x: 14.953, y: 9.754))
        p.addLine(to: CGPoint(x: 12.707, y: 12))
        p.addLine(to: CGPoint(x: 14.5, y: 12))
        p.addCurve(to: CGPoint(x: 14.856, y: 12.144), control1: CGPoint(x: 14.641, y: 12), control2: CGPoint(x: 14.759, y: 12.048))
        p.addCurve(to: CGPoint(x: 15, y: 12.5), control1: CGPoint(x: 14.952, y: 12.241), control2: CGPoint(x: 15, y: 12.359))
        p.addCurve(to: CGPoint(x: 14.856, y: 12.856), control1: CGPoint(x: 15, y: 12.641), control2: CGPoint(x: 14.952, y: 12.759))
        p.addCurve(to: CGPoint(x: 14.5, y: 13), control1: CGPoint(x: 14.759, y: 12.952), control2: CGPoint(x: 14.641, y: 13))
        p.addLine(to: CGPoint(x: 11.5, y: 13))
        p.addCurve(to: CGPoint(x: 11.146, y: 12.854), control1: CGPoint(x: 11.362, y: 13), control2: CGPoint(x: 11.244, y: 12.951))
        p.addCurve(to: CGPoint(x: 10.997, y: 12.5), control1: CGPoint(x: 11.047, y: 12.754), control2: CGPoint(x: 10.997, y: 12.636))
        p.addCurve(to: CGPoint(x: 11.146, y: 12.146), control1: CGPoint(x: 10.997, y: 12.364), control2: CGPoint(x: 11.047, y: 12.246))
        p.addLine(to: CGPoint(x: 13.793, y: 9.5))
        p.addLine(to: CGPoint(x: 13.293, y: 9))
        p.addLine(to: CGPoint(x: 11.5, y: 9))
        p.addCurve(to: CGPoint(x: 11.144, y: 8.856), control1: CGPoint(x: 11.359, y: 9), control2: CGPoint(x: 11.241, y: 8.952))
        p.addCurve(to: CGPoint(x: 11, y: 8.5), control1: CGPoint(x: 11.048, y: 8.759), control2: CGPoint(x: 11, y: 8.641))
        p.addCurve(to: CGPoint(x: 11.144, y: 8.144), control1: CGPoint(x: 11, y: 8.359), control2: CGPoint(x: 11.048, y: 8.241))
        p.addCurve(to: CGPoint(x: 11.5, y: 8), control1: CGPoint(x: 11.241, y: 8.048), control2: CGPoint(x: 11.359, y: 8))
        p.addLine(to: CGPoint(x: 13.5, y: 8))
        p.addCurve(to: CGPoint(x: 13.854, y: 8.146), control1: CGPoint(x: 13.638, y: 8), control2: CGPoint(x: 13.756, y: 8.049))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "co2" (line-round), MIT. https://gentleface.com/icons/co2
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 Co2Icon: ImageVector by lazy {
    ImageVector.Builder(
        name = "co2", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_co2.xml · Gentleface "co2" (line-round), MIT. https://gentleface.com/icons/co2 -->
<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="M2.293 3.293C2.098 3.488 2 3.724 2 4L2 9C2 9.276 2.098 9.512 2.293 9.707C2.488 9.902 2.724 10 3 10L4.5 10C4.641 10 4.759 10.048 4.856 10.144C4.952 10.241 5 10.359 5 10.5C5 10.641 4.952 10.759 4.856 10.856C4.759 10.952 4.641 11 4.5 11L3 11C2.746 11 2.5 10.953 2.264 10.86C2.007 10.758 1.781 10.609 1.586 10.414C1.391 10.219 1.242 9.993 1.14 9.736C1.047 9.5 1 9.254 1 9L1 4C1 3.746 1.047 3.5 1.14 3.264C1.242 3.007 1.391 2.781 1.586 2.586C1.781 2.391 2.007 2.242 2.264 2.14C2.5 2.047 2.746 2 3 2L4.5 2C4.641 2 4.759 2.048 4.856 2.144C4.952 2.241 5 2.359 5 2.5C5 2.641 4.952 2.759 4.856 2.856C4.759 2.952 4.641 3 4.5 3L3 3C2.724 3 2.488 3.098 2.293 3.293ZM9.86 9.736C9.758 9.993 9.609 10.219 9.414 10.414C9.219 10.609 8.993 10.758 8.736 10.86C8.5 10.953 8.254 11 8 11C7.746 11 7.5 10.953 7.264 10.86C7.007 10.758 6.781 10.609 6.586 10.414C6.391 10.219 6.242 9.993 6.14 9.736C6.047 9.5 6 9.254 6 9L6 4C6 3.746 6.047 3.5 6.14 3.264C6.242 3.007 6.391 2.781 6.586 2.586C6.781 2.391 7.007 2.242 7.264 2.14C7.5 2.047 7.746 2 8 2C8.254 2 8.5 2.047 8.736 2.14C8.993 2.242 9.219 2.391 9.414 2.586C9.609 2.781 9.758 3.007 9.86 3.264C9.953 3.5 10 3.746 10 4L10 9C10 9.254 9.953 9.5 9.86 9.736ZM7.293 9.707C7.488 9.902 7.724 10 8 10C8.276 10 8.512 9.902 8.707 9.707C8.902 9.512 9 9.276 9 9L9 4C9 3.724 8.902 3.488 8.707 3.293C8.512 3.098 8.276 3 8 3C7.724 3 7.488 3.098 7.293 3.293C7.098 3.488 7 3.724 7 4L7 9C7 9.276 7.098 9.512 7.293 9.707ZM13.854 8.146L14.854 9.146C14.953 9.246 15.003 9.364 15.003 9.5C15.003 9.636 14.953 9.754 14.854 9.854L12.707 12L14.5 12C14.641 12 14.759 12.048 14.856 12.144C14.952 12.241 15 12.359 15 12.5C15 12.641 14.952 12.759 14.856 12.856C14.759 12.952 14.641 13 14.5 13L11.5 13C11.362 13 11.244 12.951 11.146 12.854C11.047 12.754 10.997 12.636 10.997 12.5C10.997 12.364 11.047 12.246 11.146 12.146L13.793 9.5L13.293 9L11.5 9C11.359 9 11.241 8.952 11.144 8.856C11.048 8.759 11 8.641 11 8.5C11 8.359 11.048 8.241 11.144 8.144C11.241 8.048 11.359 8 11.5 8L13.5 8C13.638 8 13.756 8.049 13.854 8.146Z"/>
</vector>
```

### Flutter

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

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

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

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

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(2.293, 3.293)
      ..cubicTo(2.098, 3.488, 2, 3.724, 2, 4)
      ..lineTo(2, 9)
      ..cubicTo(2, 9.276, 2.098, 9.512, 2.293, 9.707)
      ..cubicTo(2.488, 9.902, 2.724, 10, 3, 10)
      ..lineTo(4.5, 10)
      ..cubicTo(4.641, 10, 4.759, 10.048, 4.856, 10.144)
      ..cubicTo(4.952, 10.241, 5, 10.359, 5, 10.5)
      ..cubicTo(5, 10.641, 4.952, 10.759, 4.856, 10.856)
      ..cubicTo(4.759, 10.952, 4.641, 11, 4.5, 11)
      ..lineTo(3, 11)
      ..cubicTo(2.746, 11, 2.5, 10.953, 2.264, 10.86)
      ..cubicTo(2.007, 10.758, 1.781, 10.609, 1.586, 10.414)
      ..cubicTo(1.391, 10.219, 1.242, 9.993, 1.14, 9.736)
      ..cubicTo(1.047, 9.5, 1, 9.254, 1, 9)
      ..lineTo(1, 4)
      ..cubicTo(1, 3.746, 1.047, 3.5, 1.14, 3.264)
      ..cubicTo(1.242, 3.007, 1.391, 2.781, 1.586, 2.586)
      ..cubicTo(1.781, 2.391, 2.007, 2.242, 2.264, 2.14)
      ..cubicTo(2.5, 2.047, 2.746, 2, 3, 2)
      ..lineTo(4.5, 2)
      ..cubicTo(4.641, 2, 4.759, 2.048, 4.856, 2.144)
      ..cubicTo(4.952, 2.241, 5, 2.359, 5, 2.5)
      ..cubicTo(5, 2.641, 4.952, 2.759, 4.856, 2.856)
      ..cubicTo(4.759, 2.952, 4.641, 3, 4.5, 3)
      ..lineTo(3, 3)
      ..cubicTo(2.724, 3, 2.488, 3.098, 2.293, 3.293)
      ..close()
      ..moveTo(9.86, 9.736)
      ..cubicTo(9.758, 9.993, 9.609, 10.219, 9.414, 10.414)
      ..cubicTo(9.219, 10.609, 8.993, 10.758, 8.736, 10.86)
      ..cubicTo(8.5, 10.953, 8.254, 11, 8, 11)
      ..cubicTo(7.746, 11, 7.5, 10.953, 7.264, 10.86)
      ..cubicTo(7.007, 10.758, 6.781, 10.609, 6.586, 10.414)
      ..cubicTo(6.391, 10.219, 6.242, 9.993, 6.14, 9.736)
      ..cubicTo(6.047, 9.5, 6, 9.254, 6, 9)
      ..lineTo(6, 4)
      ..cubicTo(6, 3.746, 6.047, 3.5, 6.14, 3.264)
      ..cubicTo(6.242, 3.007, 6.391, 2.781, 6.586, 2.586)
      ..cubicTo(6.781, 2.391, 7.007, 2.242, 7.264, 2.14)
      ..cubicTo(7.5, 2.047, 7.746, 2, 8, 2)
      ..cubicTo(8.254, 2, 8.5, 2.047, 8.736, 2.14)
      ..cubicTo(8.993, 2.242, 9.219, 2.391, 9.414, 2.586)
      ..cubicTo(9.609, 2.781, 9.758, 3.007, 9.86, 3.264)
      ..cubicTo(9.953, 3.5, 10, 3.746, 10, 4)
      ..lineTo(10, 9)
      ..cubicTo(10, 9.254, 9.953, 9.5, 9.86, 9.736)
      ..close()
      ..moveTo(7.293, 9.707)
      ..cubicTo(7.488, 9.902, 7.724, 10, 8, 10)
      ..cubicTo(8.276, 10, 8.512, 9.902, 8.707, 9.707)
      ..cubicTo(8.902, 9.512, 9, 9.276, 9, 9)
      ..lineTo(9, 4)
      ..cubicTo(9, 3.724, 8.902, 3.488, 8.707, 3.293)
      ..cubicTo(8.512, 3.098, 8.276, 3, 8, 3)
      ..cubicTo(7.724, 3, 7.488, 3.098, 7.293, 3.293)
      ..cubicTo(7.098, 3.488, 7, 3.724, 7, 4)
      ..lineTo(7, 9)
      ..cubicTo(7, 9.276, 7.098, 9.512, 7.293, 9.707)
      ..close()
      ..moveTo(13.854, 8.146)
      ..lineTo(14.854, 9.146)
      ..cubicTo(14.953, 9.246, 15.003, 9.364, 15.003, 9.5)
      ..cubicTo(15.003, 9.636, 14.953, 9.754, 14.854, 9.854)
      ..lineTo(12.707, 12)
      ..lineTo(14.5, 12)
      ..cubicTo(14.641, 12, 14.759, 12.048, 14.856, 12.144)
      ..cubicTo(14.952, 12.241, 15, 12.359, 15, 12.5)
      ..cubicTo(15, 12.641, 14.952, 12.759, 14.856, 12.856)
      ..cubicTo(14.759, 12.952, 14.641, 13, 14.5, 13)
      ..lineTo(11.5, 13)
      ..cubicTo(11.362, 13, 11.244, 12.951, 11.146, 12.854)
      ..cubicTo(11.047, 12.754, 10.997, 12.636, 10.997, 12.5)
      ..cubicTo(10.997, 12.364, 11.047, 12.246, 11.146, 12.146)
      ..lineTo(13.793, 9.5)
      ..lineTo(13.293, 9)
      ..lineTo(11.5, 9)
      ..cubicTo(11.359, 9, 11.241, 8.952, 11.144, 8.856)
      ..cubicTo(11.048, 8.759, 11, 8.641, 11, 8.5)
      ..cubicTo(11, 8.359, 11.048, 8.241, 11.144, 8.144)
      ..cubicTo(11.241, 8.048, 11.359, 8, 11.5, 8)
      ..lineTo(13.5, 8)
      ..cubicTo(13.638, 8, 13.756, 8.049, 13.854, 8.146)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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