mirrorLine
Mirror the child across a line through center at angle.
mirrorLine(slots: {center: ArgSpec; angle: ArgSpec}): UvMapSource
Import warps from shaders/std and use warps.mirrorLine.
center is in uv, angle in degrees. One side of the line stays as it is and the other side shows its reflection.
Parameters
| Name | Type | Notes |
|---|---|---|
slots | {center: ArgSpec; angle: ArgSpec} |
Example
map: warps.mirrorLine({center: p('center'), angle: p('angle')})
Tip. Pair it with an
edgesprop that defaults to'mirror'so the reflected half never runs out of picture.
See also
flip— Flip the child horizontally, vertically, or both.kaleidoscope— Fold the child into mirrored pie slices aroundcenter.