Toggle Sidebar B
Light & dark mode D

Mirror

Mirror content across a line defined by center point and angle

Mirror content across a line defined by center point and angle

Props

PropTypeDefaultDescription
centerposition{"x":0.5,"y":0.5}The point the mirror line passes through
anglerange0The angle of the mirror line in degrees
edges"stretch" | "transparent" | "mirror" | "wrap"mirrorHow to handle edges when distortion pushes content out of bounds

Usage

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