Flower
Petal shape with N lobes and adjustable inner-to-outer radius ratio
Props
Prop
Details
colorstringDefault:
#ffffffFill color of the flower
colorstringDefault: #ffffffFill color of the flower
center{x: number, y: number}Default:
{"x":0.5,"y":0.5}Center position of the flower
center{x: number, y: number}Default: {"x":0.5,"y":0.5}Center position of the flower
radiusnumberDefault:
0.4Outer petal tip radius in UV space
radiusnumberDefault: 0.4Outer petal tip radius in UV space
sidesnumberDefault:
5Number of petals
sidesnumberDefault: 5Number of petals
innerRationumberDefault:
0.4Inner valley radius as a ratio of outer radius — lower values make deeper notches
innerRationumberDefault: 0.4Inner valley radius as a ratio of outer radius — lower values make deeper notches
rotationnumberDefault:
0Rotation in degrees
rotationnumberDefault: 0Rotation in degrees
softnessnumberDefault:
0Edge softness for antialiasing
softnessnumberDefault: 0Edge softness for antialiasing
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 shape edge
strokePosition"outside" | "center" | "inside"Default: centerPosition of the stroke relative to the shape 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>
<Flower
color="#ffffff"
:radius="0.4"
/>
</Shader>