Ring
Annular ring (donut) with adjustable radius and band thickness
Props
Prop
Details
colorstringDefault:
#ffffffFill color of the ring
colorstringDefault: #ffffffFill color of the ring
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the ring
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the ring
radiusnumberDefault:
0.3Distance from center to the ring's midline in UV space
radiusnumberDefault: 0.3Distance from center to the ring's midline in UV space
thicknessnumberDefault:
0.07Half-width of the ring band — total ring width is twice this value
thicknessnumberDefault: 0.07Half-width of the ring band — total ring width is twice this value
softnessnumberDefault:
0Edge softness for antialiasing (applied to both inner and outer ring edges)
softnessnumberDefault: 0Edge softness for antialiasing (applied to both inner and outer ring edges)
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 ring edge
strokePosition"outside" | "center" | "inside"Default: centerPosition of the stroke relative to the ring 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>
<Ring
color="#ffffff"
:radius="0.3"
/>
</Shader>