Documentation

PolarCoordinates

Convert rectangular coordinates to polar space

Props

center{x: number, y: number}
Default:{"x":0.5,"y":0.5}
The center point for polar coordinate conversion
wrapnumber
Default:1
Controls how much of the angular range to use (1 = full 360°, 0.5 = 180°)
radiusnumber
Default:1
Controls how much of the radius range to use (affects the radial mapping)
intensitynumber
Default:1
Blends between original UVs (0) and polar coordinates (1)
edges"stretch" | "transparent" | "mirror" | "wrap"
Default:transparent
How to handle edges when distortion pushes content out of bounds

Usage

<Shader>
  <PolarCoordinates
    radius={1}
    intensity={1}
  >
    <Circle />
  </PolarCoordinates>
</Shader>