flip
Flip the child horizontally, vertically, or both.
flip(slots: {flipX: ArgSpec; flipY: ArgSpec}): UvMapSource
Import warps from shaders/std and use warps.flip.
flipX and flipY are boolean props declared with transform: transformBoolean. The flip never looks outside the child, so set edges: 'none' on the definition.
Parameters
| Name | Type | Notes |
|---|---|---|
slots | {flipX: ArgSpec; flipY: ArgSpec} |
Example
map: warps.flip({flipX: p('flipX'), flipY: p('flipY')}),
edges: 'none',
See also
mirrorLine— Mirror the child across a line throughcenteratangle.