Documentation

ConicGradient

Colors sweep in a full circle around a center point, like a color wheel

Props

colorAstring
Default:#FF0080
Starting color of the sweep
colorBstring
Default:#00BFFF
Ending color of the sweep (wraps back to Color A)
center{x: number, y: number}
Default:{"x":0.5,"y":0.5}
Center point of the sweep
rotationnumber
Default:0
Rotation offset in degrees — shifts where Color A begins
repeatnumber
Default:1
Number of times the gradient repeats around the circle. Values above 1 create a starburst pattern.
colorSpace"linear" | "oklch" | "oklab" | "hsl" | "hsv" | "lch"
Default:oklch
Color space for color interpolation

Usage

<Shader>
  <ConicGradient />
</Shader>