Documentation

Bulge

Magnify or pinch content around a center point

Props

center{x: number, y: number}
Default:{"x":0.5,"y":0.5}
The center point of the bulge effect
strengthnumber
Default:1
The intensity of the bulge effect (positive = bulge out, negative = pinch in)
radiusnumber
Default:1
The radius of the bulge effect area
falloffnumber
Default:0.5
Controls the smoothness of the transition (0 = hard edge, 1 = very smooth)
edges"stretch" | "transparent" | "mirror" | "wrap"
Default:stretch
How to handle edges when distortion pushes content out of bounds

Usage

<Shader>
  <Bulge
    radius={1}
  >
    <Circle />
  </Bulge>
</Shader>