Toggle Sidebar B
Light & dark mode D

Crescent

Crescent moon shape - an outer circle with an inner circle subtracted

Crescent moon shape - an outer circle with an inner circle subtracted

Props

PropTypeDefaultDescription
colorcolor#ffffffFill color of the crescent
centerposition{"x":0.5,"y":0.5}Center position of the crescent
radiusrange0.3Outer circle radius
innerRatiorange0.8Inner (bite) circle radius as a fraction of outer radius
offsetrange0.2Horizontal distance the bite circle is shifted from center
rotationrange0Rotation in degrees
softnessrange0Edge softness for antialiasing
strokeThicknessrange0Stroke thickness. Zero means no stroke.
strokeColorcolor#000000Color of the stroke outline
strokePosition"outside" | "center" | "inside"centerPosition of the stroke relative to the shape edge
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"linearColor space for blending fill and stroke colors

Usage

vue
<Shader>
  <Crescent
    color="#ffffff"
    :radius="0.3"
  />
</Shader>