Ring
Annular ring (donut) with adjustable radius and band thickness
Props
origin
Reference edge the center position is measured from (center default). Lets you pin the shape relative to a corner or the canvas centre.
- Type
- string
- Default
- center
color
Fill color of the ring
- Type
- string
- Default
- #ffffff
center
Center position of the ring
- Type
- {x: number, y: number}
- Default
- {"x":0.5,"y":0.5}
radius
Distance from center to the ring's midline in UV space
- Type
- number
- Default
- 0.3
thickness
Half-width of the ring band — total ring width is twice this value
- Type
- number
- Default
- 0.07
softness
Edge softness for antialiasing (applied to both inner and outer ring edges)
- Type
- number
- Default
- 0
strokeThickness
Stroke thickness. Zero means no stroke.
- Type
- number
- Default
- 0
strokeColor
Color of the stroke outline
- Type
- string
- Default
- #000000
strokePosition
Position of the stroke relative to the ring edge
- Type
- "outside" | "center" | "inside"
- Default
- center
colorSpace
Color space for blending fill and stroke colors
- Type
- "linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"
- Default
- linear