Twirl

Rotate and twist content around a center point

Props

  • center

    The center point of the twirl effect

    Type
    {x: number, y: number}
    Default
    {"x":0.5,"y":0.5}
  • intensity

    The strength of the twirl effect

    Type
    number
    Default
    1
  • edges

    How to handle edges when distortion pushes content out of bounds

    Type
    "stretch" | "transparent" | "mirror" | "wrap"
    Default
    stretch

Usage

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