Toggle Sidebar B
Light & dark mode D

Twirl

Rotate and twist content around a center point

Rotate and twist content around a center point

Props

PropTypeDefaultDescription
centerposition{"x":0.5,"y":0.5}The center point of the twirl effect
intensityrange1The strength of the twirl effect
edges"stretch" | "transparent" | "mirror" | "wrap"stretchHow to handle edges when distortion pushes content out of bounds

Usage

vue
<Shader>
  <Twirl
    :intensity="1"
  >
    <Circle />
  </Twirl>
</Shader>