Mirror event values around a center value (mutates in place).
For moveX events, use center = 0 to flip horizontal motion. For moveY / rotation events, also use center = 0.
moveX
center = 0
moveY
Array of numeric events to mirror.
The pivot value to mirror around (default 0).
// Flip all horizontal movementmirrorEventValues(layer.moveXEvents ?? []);// Mirror rotation around 45°mirrorEventValues(layer.rotateEvents ?? [], 45); Copy
// Flip all horizontal movementmirrorEventValues(layer.moveXEvents ?? []);// Mirror rotation around 45°mirrorEventValues(layer.rotateEvents ?? [], 45);
Mirror event values around a center value (mutates in place).
For
moveXevents, usecenter = 0to flip horizontal motion. FormoveY/ rotation events, also usecenter = 0.