Cross
Plus / cross shape with adjustable arm length, width, and rounding
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 cross
- Type
- string
- Default
- #ffffff
center
Center position of the cross
- Type
- {x: number, y: number}
- Default
- {"x":0.5,"y":0.5}
radius
Arm half-length — distance from center to the end of each arm
- Type
- number
- Default
- 0.35
thickness
Arm half-width — controls how wide each arm is
- Type
- number
- Default
- 0.08
rounding
Corner rounding — rounds the arm ends and concave corners
- Type
- number
- Default
- 0
rotation
Rotation in degrees (45° turns a plus into an ×)
- Type
- number
- Default
- 0
softness
Edge softness for antialiasing
- 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 shape 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