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

NameTypeNotes
slots{center: ArgSpec; angle: ArgSpec}

Example

map: warps.mirrorLine({center: p('center'), angle: p('angle')})

Tip. Pair it with an edges prop 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 around center.

Used by

Mirror