Crescent
Crescent moon shape — an outer circle with an inner circle subtracted
Props
Prop
Details
colorstringDefault:
#ffffffFill color of the crescent
colorstringDefault: #ffffffFill color of the crescent
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the crescent
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the crescent
radiusnumberDefault:
0.3Outer circle radius
radiusnumberDefault: 0.3Outer circle radius
innerRationumberDefault:
0.8Inner (bite) circle radius as a fraction of outer radius
innerRationumberDefault: 0.8Inner (bite) circle radius as a fraction of outer radius
offsetnumberDefault:
0.2Horizontal distance the bite circle is shifted from center
offsetnumberDefault: 0.2Horizontal distance the bite circle is shifted from center
rotationnumberDefault:
0Rotation in degrees
rotationnumberDefault: 0Rotation in degrees
softnessnumberDefault:
0Edge softness for antialiasing
softnessnumberDefault: 0Edge softness for antialiasing
strokeThicknessnumberDefault:
0Stroke thickness. Zero means no stroke.
strokeThicknessnumberDefault: 0Stroke thickness. Zero means no stroke.
strokeColorstringDefault:
#000000Color of the stroke outline
strokeColorstringDefault: #000000Color of the stroke outline
strokePosition"outside" | "center" | "inside"Default:
centerPosition of the stroke relative to the shape edge
strokePosition"outside" | "center" | "inside"Default: centerPosition of the stroke relative to the shape edge
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default:
linearColor space for blending fill and stroke colors
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"Default: linearColor space for blending fill and stroke colors
Usage
<Shader>
<Crescent
color="#ffffff"
:radius="0.3"
/>
</Shader>