Mirror

Mirror content across a line defined by center point and angle

Props

  • center

    The point the mirror line passes through

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

    The angle of the mirror line in degrees

    Type
    number
    Default
    0
  • edges

    How to handle edges when distortion pushes content out of bounds

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

Usage

<Shader>
  <Mirror>
    <Circle />
  </Mirror>
</Shader>