Toggle Sidebar B
Light & dark mode D

Cross

Plus / cross shape with adjustable arm length, width, and rounding

Plus / cross shape with adjustable arm length, width, and rounding

Props

PropTypeDefaultDescription
colorcolor#ffffffFill color of the cross
centerposition{"x":0.5,"y":0.5}Center position of the cross
radiusrange0.35Arm half-length - distance from center to the end of each arm
thicknessrange0.08Arm half-width - controls how wide each arm is
roundingrange0Corner rounding - rounds the arm ends and concave corners
rotationrange0Rotation in degrees (45° turns a plus into an ×)
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>
  <Cross
    color="#ffffff"
    :radius="0.35"
  />
</Shader>