# star-half icon

Star half. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/star-half

- Category: Social & emotions
- Use it for: half star, partial rating, half rating
- Tags: star, half, rating, review, score, partial
- Family: star, star-off
- Component name: StarHalfIcon
- Added: 2026-10-15

## Also fits

- rating: a partial rating display

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

The SVG of every style: https://gentleface.com/icons/star-half.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.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z"/></svg>
```

### React

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

export function StarHalfIcon(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.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "star-half" (line-round), MIT. https://gentleface.com/icons/star-half -->
<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.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "star-half" (line-round), MIT. https://gentleface.com/icons/star-half -->
<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.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z" />
</svg>
```

### HTML img

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

### CSS

```css
/* Gentleface "star-half" (line-round), MIT. https://gentleface.com/icons/star-half. Takes the text color. */
.icon-star-half {
  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.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z'/%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.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z'/%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.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z'/%3E%3C/svg%3E
```

### Sprite

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

### SwiftUI

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

struct StarHalfIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 13.856, y: 6.144))
        p.addCurve(to: CGPoint(x: 14, y: 6.5), control1: CGPoint(x: 13.952, y: 6.241), control2: CGPoint(x: 14, y: 6.359))
        p.addCurve(to: CGPoint(x: 13.825, y: 6.88), control1: CGPoint(x: 14, y: 6.653), control2: CGPoint(x: 13.942, y: 6.78))
        p.addLine(to: CGPoint(x: 10.56, y: 9.679))
        p.addLine(to: CGPoint(x: 11.485, y: 13.379))
        p.addCurve(to: CGPoint(x: 11.429, y: 13.757), control1: CGPoint(x: 11.519, y: 13.513), control2: CGPoint(x: 11.5, y: 13.639))
        p.addCurve(to: CGPoint(x: 11.121, y: 13.985), control1: CGPoint(x: 11.358, y: 13.876), control2: CGPoint(x: 11.255, y: 13.952))
        p.addCurve(to: CGPoint(x: 10.709, y: 13.907), control1: CGPoint(x: 10.972, y: 14.022), control2: CGPoint(x: 10.835, y: 13.996))
        p.addLine(to: CGPoint(x: 7.5, y: 11.614))
        p.addLine(to: CGPoint(x: 4.291, y: 13.907))
        p.addCurve(to: CGPoint(x: 3.918, y: 13.993), control1: CGPoint(x: 4.178, y: 13.987), control2: CGPoint(x: 4.054, y: 14.016))
        p.addCurve(to: CGPoint(x: 3.593, y: 13.791), control1: CGPoint(x: 3.782, y: 13.97), control2: CGPoint(x: 3.673, y: 13.903))
        p.addCurve(to: CGPoint(x: 3.515, y: 13.379), control1: CGPoint(x: 3.504, y: 13.665), control2: CGPoint(x: 3.478, y: 13.528))
        p.addLine(to: CGPoint(x: 4.44, y: 9.679))
        p.addLine(to: CGPoint(x: 1.175, y: 6.88))
        p.addCurve(to: CGPoint(x: 1.001, y: 6.538), control1: CGPoint(x: 1.07, y: 6.79), control2: CGPoint(x: 1.012, y: 6.676))
        p.addCurve(to: CGPoint(x: 1.12, y: 6.175), control1: CGPoint(x: 0.991, y: 6.401), control2: CGPoint(x: 1.031, y: 6.279))
        p.addCurve(to: CGPoint(x: 1.5, y: 6), control1: CGPoint(x: 1.22, y: 6.058), control2: CGPoint(x: 1.347, y: 6))
        p.addLine(to: CGPoint(x: 5.654, y: 6))
        p.addLine(to: CGPoint(x: 7.032, y: 2.324))
        p.addCurve(to: CGPoint(x: 7.293, y: 2.045), control1: CGPoint(x: 7.08, y: 2.195), control2: CGPoint(x: 7.167, y: 2.102))
        p.addCurve(to: CGPoint(x: 7.676, y: 2.032), control1: CGPoint(x: 7.419, y: 1.988), control2: CGPoint(x: 7.546, y: 1.983))
        p.addCurve(to: CGPoint(x: 7.968, y: 2.324), control1: CGPoint(x: 7.817, y: 2.085), control2: CGPoint(x: 7.915, y: 2.183))
        p.addLine(to: CGPoint(x: 9.347, y: 6))
        p.addLine(to: CGPoint(x: 13.5, y: 6))
        p.addCurve(to: CGPoint(x: 13.856, y: 6.144), control1: CGPoint(x: 13.641, y: 6), control2: CGPoint(x: 13.759, y: 6.048))
        p.closeSubpath()
        p.move(to: CGPoint(x: 9.515, y: 9.621))
        p.addCurve(to: CGPoint(x: 9.523, y: 9.348), control1: CGPoint(x: 9.492, y: 9.529), control2: CGPoint(x: 9.494, y: 9.437))
        p.addCurve(to: CGPoint(x: 9.675, y: 9.12), control1: CGPoint(x: 9.552, y: 9.258), control2: CGPoint(x: 9.602, y: 9.183))
        p.addLine(to: CGPoint(x: 12.148, y: 7))
        p.addLine(to: CGPoint(x: 9, y: 7))
        p.addCurve(to: CGPoint(x: 8.715, y: 6.912), control1: CGPoint(x: 8.895, y: 7), control2: CGPoint(x: 8.8, y: 6.971))
        p.addCurve(to: CGPoint(x: 8.532, y: 6.676), control1: CGPoint(x: 8.63, y: 6.853), control2: CGPoint(x: 8.569, y: 6.774))
        p.addLine(to: CGPoint(x: 8, y: 5.257))
        p.addLine(to: CGPoint(x: 8, y: 10.743))
        p.addLine(to: CGPoint(x: 10.186, y: 12.304))
        p.addLine(to: CGPoint(x: 9.515, y: 9.621))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

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

### Compose

```kotlin
// Gentleface "star-half" (line-round), MIT. https://gentleface.com/icons/star-half
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 StarHalfIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "star-half", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M13.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

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

### Android XML

```xml
<!-- res/drawable/ic_star_half.xml · Gentleface "star-half" (line-round), MIT. https://gentleface.com/icons/star-half -->
<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.856 6.144C13.952 6.241 14 6.359 14 6.5C14 6.653 13.942 6.78 13.825 6.88L10.56 9.679L11.485 13.379C11.519 13.513 11.5 13.639 11.429 13.757C11.358 13.876 11.255 13.952 11.121 13.985C10.972 14.022 10.835 13.996 10.709 13.907L7.5 11.614L4.291 13.907C4.178 13.987 4.054 14.016 3.918 13.993C3.782 13.97 3.673 13.903 3.593 13.791C3.504 13.665 3.478 13.528 3.515 13.379L4.44 9.679L1.175 6.88C1.07 6.79 1.012 6.676 1.001 6.538C0.991 6.401 1.031 6.279 1.12 6.175C1.22 6.058 1.347 6 1.5 6L5.654 6L7.032 2.324C7.08 2.195 7.167 2.102 7.293 2.045C7.419 1.988 7.546 1.983 7.676 2.032C7.817 2.085 7.915 2.183 7.968 2.324L9.347 6L13.5 6C13.641 6 13.759 6.048 13.856 6.144ZM9.515 9.621C9.492 9.529 9.494 9.437 9.523 9.348C9.552 9.258 9.602 9.183 9.675 9.12L12.148 7L9 7C8.895 7 8.8 6.971 8.715 6.912C8.63 6.853 8.569 6.774 8.532 6.676L8 5.257L8 10.743L10.186 12.304L9.515 9.621Z"/>
</vector>
```

### Flutter

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

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

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

class _StarHalfIconPainter extends CustomPainter {
  _StarHalfIconPainter(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.856, 6.144)
      ..cubicTo(13.952, 6.241, 14, 6.359, 14, 6.5)
      ..cubicTo(14, 6.653, 13.942, 6.78, 13.825, 6.88)
      ..lineTo(10.56, 9.679)
      ..lineTo(11.485, 13.379)
      ..cubicTo(11.519, 13.513, 11.5, 13.639, 11.429, 13.757)
      ..cubicTo(11.358, 13.876, 11.255, 13.952, 11.121, 13.985)
      ..cubicTo(10.972, 14.022, 10.835, 13.996, 10.709, 13.907)
      ..lineTo(7.5, 11.614)
      ..lineTo(4.291, 13.907)
      ..cubicTo(4.178, 13.987, 4.054, 14.016, 3.918, 13.993)
      ..cubicTo(3.782, 13.97, 3.673, 13.903, 3.593, 13.791)
      ..cubicTo(3.504, 13.665, 3.478, 13.528, 3.515, 13.379)
      ..lineTo(4.44, 9.679)
      ..lineTo(1.175, 6.88)
      ..cubicTo(1.07, 6.79, 1.012, 6.676, 1.001, 6.538)
      ..cubicTo(0.991, 6.401, 1.031, 6.279, 1.12, 6.175)
      ..cubicTo(1.22, 6.058, 1.347, 6, 1.5, 6)
      ..lineTo(5.654, 6)
      ..lineTo(7.032, 2.324)
      ..cubicTo(7.08, 2.195, 7.167, 2.102, 7.293, 2.045)
      ..cubicTo(7.419, 1.988, 7.546, 1.983, 7.676, 2.032)
      ..cubicTo(7.817, 2.085, 7.915, 2.183, 7.968, 2.324)
      ..lineTo(9.347, 6)
      ..lineTo(13.5, 6)
      ..cubicTo(13.641, 6, 13.759, 6.048, 13.856, 6.144)
      ..close()
      ..moveTo(9.515, 9.621)
      ..cubicTo(9.492, 9.529, 9.494, 9.437, 9.523, 9.348)
      ..cubicTo(9.552, 9.258, 9.602, 9.183, 9.675, 9.12)
      ..lineTo(12.148, 7)
      ..lineTo(9, 7)
      ..cubicTo(8.895, 7, 8.8, 6.971, 8.715, 6.912)
      ..cubicTo(8.63, 6.853, 8.569, 6.774, 8.532, 6.676)
      ..lineTo(8, 5.257)
      ..lineTo(8, 10.743)
      ..lineTo(10.186, 12.304)
      ..lineTo(9.515, 9.621)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

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