Documentation

RectangularCoordinates

Convert polar coordinates back to rectangular space

Props

center{x: number, y: number}
Default:{"x":0.5,"y":0.5}
The center point for rectangular coordinate conversion
scalenumber
Default:1
Scale factor for the rectangular output
intensitynumber
Default:1
Blends between original UVs (0) and rectangular coordinates (1)
edges"stretch" | "transparent" | "mirror" | "wrap"
Default:transparent
How to handle edges when distortion pushes content out of bounds

Usage

<Shader>
  <RectangularCoordinates
    intensity={1}
  >
    <Circle />
  </RectangularCoordinates>
</Shader>