# lamp icon

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

- Category: Home & household
- Use it for: lamp, lighting, lights, table lamp, lamps
- Tags: lamp, lighting, light, table-lamp, lampshade, bedside, furniture, illumination
- Family: lamp-off
- Component name: LampIcon
- Added: 2026-10-15

## Alternatives

- `lamp-ceiling`: a ceiling or pendant light
- `lamp-desk`: a desk or task lamp
- `lamp-floor`: a floor lamp
- `lamp-wall`: a wall light or sconce
- `sun-dim`: the brightness of a screen or a dimmer level

## Don't confuse with

- `lightbulb`: lightbulb owns idea, tip and hint; lighting uses lamp

## Also fits

- ceiling light: a table lamp, or lighting in general
- lights off: lights on, or lighting in general

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

The SVG of every style: https://gentleface.com/icons/lamp.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.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z"/></svg>
```

### React

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

export function LampIcon(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.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "lamp" (line-round), MIT. https://gentleface.com/icons/lamp -->
<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.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "lamp" (line-round), MIT. https://gentleface.com/icons/lamp -->
<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.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "lamp" (line-round), MIT. https://gentleface.com/icons/lamp. Takes the text color. */
.icon-lamp {
  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.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z'/%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.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z'/%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.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct LampIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 12.585, y: 6.553))
        p.addCurve(to: CGPoint(x: 12.691, y: 7.01), control1: CGPoint(x: 12.657, y: 6.697), control2: CGPoint(x: 12.693, y: 6.849))
        p.addCurve(to: CGPoint(x: 12.542, y: 7.526), control1: CGPoint(x: 12.689, y: 7.196), control2: CGPoint(x: 12.639, y: 7.368))
        p.addCurve(to: CGPoint(x: 12.147, y: 7.89), control1: CGPoint(x: 12.444, y: 7.684), control2: CGPoint(x: 12.312, y: 7.805))
        p.addCurve(to: CGPoint(x: 11.691, y: 8), control1: CGPoint(x: 12.004, y: 7.963), control2: CGPoint(x: 11.852, y: 8))
        p.addLine(to: CGPoint(x: 8, y: 8))
        p.addLine(to: CGPoint(x: 8, y: 13))
        p.addLine(to: CGPoint(x: 10.5, y: 13))
        p.addCurve(to: CGPoint(x: 10.856, y: 13.144), control1: CGPoint(x: 10.641, y: 13), control2: CGPoint(x: 10.759, y: 13.048))
        p.addCurve(to: CGPoint(x: 11, y: 13.5), control1: CGPoint(x: 10.952, y: 13.241), control2: CGPoint(x: 11, y: 13.359))
        p.addCurve(to: CGPoint(x: 10.856, y: 13.856), control1: CGPoint(x: 11, y: 13.641), control2: CGPoint(x: 10.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 10.5, y: 14), control1: CGPoint(x: 10.759, y: 13.952), control2: CGPoint(x: 10.641, y: 14))
        p.addLine(to: CGPoint(x: 4.5, y: 14))
        p.addCurve(to: CGPoint(x: 4.144, y: 13.856), control1: CGPoint(x: 4.359, y: 14), control2: CGPoint(x: 4.241, y: 13.952))
        p.addCurve(to: CGPoint(x: 4, y: 13.5), control1: CGPoint(x: 4.048, y: 13.759), control2: CGPoint(x: 4, y: 13.641))
        p.addCurve(to: CGPoint(x: 4.144, y: 13.144), control1: CGPoint(x: 4, y: 13.359), control2: CGPoint(x: 4.048, y: 13.241))
        p.addCurve(to: CGPoint(x: 4.5, y: 13), control1: CGPoint(x: 4.241, y: 13.048), control2: CGPoint(x: 4.359, y: 13))
        p.addLine(to: CGPoint(x: 7, y: 13))
        p.addLine(to: CGPoint(x: 7, y: 8))
        p.addLine(to: CGPoint(x: 3.309, y: 8))
        p.addCurve(to: CGPoint(x: 2.853, y: 7.89), control1: CGPoint(x: 3.148, y: 8), control2: CGPoint(x: 2.996, y: 7.963))
        p.addCurve(to: CGPoint(x: 2.458, y: 7.526), control1: CGPoint(x: 2.688, y: 7.805), control2: CGPoint(x: 2.556, y: 7.684))
        p.addCurve(to: CGPoint(x: 2.309, y: 7.01), control1: CGPoint(x: 2.361, y: 7.368), control2: CGPoint(x: 2.311, y: 7.196))
        p.addCurve(to: CGPoint(x: 2.415, y: 6.553), control1: CGPoint(x: 2.307, y: 6.849), control2: CGPoint(x: 2.343, y: 6.697))
        p.addLine(to: CGPoint(x: 4.915, y: 1.553))
        p.addCurve(to: CGPoint(x: 5.283, y: 1.149), control1: CGPoint(x: 4.999, y: 1.383), control2: CGPoint(x: 5.122, y: 1.249))
        p.addCurve(to: CGPoint(x: 5.809, y: 1), control1: CGPoint(x: 5.444, y: 1.05), control2: CGPoint(x: 5.62, y: 1))
        p.addLine(to: CGPoint(x: 9.191, y: 1))
        p.addCurve(to: CGPoint(x: 9.717, y: 1.149), control1: CGPoint(x: 9.38, y: 1), control2: CGPoint(x: 9.556, y: 1.05))
        p.addCurve(to: CGPoint(x: 10.085, y: 1.553), control1: CGPoint(x: 9.878, y: 1.249), control2: CGPoint(x: 10.001, y: 1.383))
        p.addLine(to: CGPoint(x: 12.585, y: 6.553))
        p.closeSubpath()
        p.move(to: CGPoint(x: 3.309, y: 7))
        p.addLine(to: CGPoint(x: 11.691, y: 7))
        p.addLine(to: CGPoint(x: 9.191, y: 2))
        p.addLine(to: CGPoint(x: 5.809, y: 2))
        p.addLine(to: CGPoint(x: 3.309, y: 7))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "lamp" (line-round), MIT. https://gentleface.com/icons/lamp
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 LampIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "lamp", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M12.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_lamp.xml · Gentleface "lamp" (line-round), MIT. https://gentleface.com/icons/lamp -->
<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.585 6.553C12.657 6.697 12.693 6.849 12.691 7.01C12.689 7.196 12.639 7.368 12.542 7.526C12.444 7.684 12.312 7.805 12.147 7.89C12.004 7.963 11.852 8 11.691 8L8 8L8 13L10.5 13C10.641 13 10.759 13.048 10.856 13.144C10.952 13.241 11 13.359 11 13.5C11 13.641 10.952 13.759 10.856 13.856C10.759 13.952 10.641 14 10.5 14L4.5 14C4.359 14 4.241 13.952 4.144 13.856C4.048 13.759 4 13.641 4 13.5C4 13.359 4.048 13.241 4.144 13.144C4.241 13.048 4.359 13 4.5 13L7 13L7 8L3.309 8C3.148 8 2.996 7.963 2.853 7.89C2.688 7.805 2.556 7.684 2.458 7.526C2.361 7.368 2.311 7.196 2.309 7.01C2.307 6.849 2.343 6.697 2.415 6.553L4.915 1.553C4.999 1.383 5.122 1.249 5.283 1.149C5.444 1.05 5.62 1 5.809 1L9.191 1C9.38 1 9.556 1.05 9.717 1.149C9.878 1.249 10.001 1.383 10.085 1.553L12.585 6.553ZM3.309 7L11.691 7L9.191 2L5.809 2L3.309 7Z"/>
</vector>
```

### Flutter

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

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

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

class _LampIconPainter extends CustomPainter {
  _LampIconPainter(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.585, 6.553)
      ..cubicTo(12.657, 6.697, 12.693, 6.849, 12.691, 7.01)
      ..cubicTo(12.689, 7.196, 12.639, 7.368, 12.542, 7.526)
      ..cubicTo(12.444, 7.684, 12.312, 7.805, 12.147, 7.89)
      ..cubicTo(12.004, 7.963, 11.852, 8, 11.691, 8)
      ..lineTo(8, 8)
      ..lineTo(8, 13)
      ..lineTo(10.5, 13)
      ..cubicTo(10.641, 13, 10.759, 13.048, 10.856, 13.144)
      ..cubicTo(10.952, 13.241, 11, 13.359, 11, 13.5)
      ..cubicTo(11, 13.641, 10.952, 13.759, 10.856, 13.856)
      ..cubicTo(10.759, 13.952, 10.641, 14, 10.5, 14)
      ..lineTo(4.5, 14)
      ..cubicTo(4.359, 14, 4.241, 13.952, 4.144, 13.856)
      ..cubicTo(4.048, 13.759, 4, 13.641, 4, 13.5)
      ..cubicTo(4, 13.359, 4.048, 13.241, 4.144, 13.144)
      ..cubicTo(4.241, 13.048, 4.359, 13, 4.5, 13)
      ..lineTo(7, 13)
      ..lineTo(7, 8)
      ..lineTo(3.309, 8)
      ..cubicTo(3.148, 8, 2.996, 7.963, 2.853, 7.89)
      ..cubicTo(2.688, 7.805, 2.556, 7.684, 2.458, 7.526)
      ..cubicTo(2.361, 7.368, 2.311, 7.196, 2.309, 7.01)
      ..cubicTo(2.307, 6.849, 2.343, 6.697, 2.415, 6.553)
      ..lineTo(4.915, 1.553)
      ..cubicTo(4.999, 1.383, 5.122, 1.249, 5.283, 1.149)
      ..cubicTo(5.444, 1.05, 5.62, 1, 5.809, 1)
      ..lineTo(9.191, 1)
      ..cubicTo(9.38, 1, 9.556, 1.05, 9.717, 1.149)
      ..cubicTo(9.878, 1.249, 10.001, 1.383, 10.085, 1.553)
      ..lineTo(12.585, 6.553)
      ..close()
      ..moveTo(3.309, 7)
      ..lineTo(11.691, 7)
      ..lineTo(9.191, 2)
      ..lineTo(5.809, 2)
      ..lineTo(3.309, 7)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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