barOffset

Cut the child into parallel bars and shift each one sideways by a random amount.

barOffset(slots: {count: ArgSpec; angle: ArgSpec; intensity: ArgSpec; seed: ArgSpec}): UvMapSource

Import warps from shaders/std and use warps.barOffset.

A glitch or fractured look. count is the number of bars across the canvas, angle their direction in degrees, intensity (0–1) how far they shift. seed reshuffles the offsets. Bars drift with the layer's clock, so declare animatedTime: {speed: 'speed'}.

Parameters

NameTypeNotes
slots{count: ArgSpec; angle: ArgSpec; intensity: ArgSpec; seed: ArgSpec}

Example

map: warps.barOffset({count: p('count'), angle: p('angle'), intensity: p('intensity'), seed: p('seed')})

See also

  • slicedSlide — Slice the child into strips that slide out of frame in alternating directions.
  • concentricRings — Cut the child into rings around center and spin each ring by its own amount.

Used by

BarShift