Toggle Sidebar B
Light & dark mode D

Flower

Petal shape with N lobes and adjustable inner-to-outer radius ratio

Petal shape with N lobes and adjustable inner-to-outer radius ratio

Props

PropTypeDefaultDescription
colorcolor#ffffffFill color of the flower
centerposition{"x":0.5,"y":0.5}Center position of the flower
radiusrange0.4Outer petal tip radius in UV space
sidesrange5Number of petals
innerRatiorange0.4Inner valley radius as a ratio of outer radius - lower values make deeper notches
rotationrange0Rotation in degrees
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>
  <Flower
    color="#ffffff"
    :radius="0.4"
  />
</Shader>