applyEffect method

  1. @override
void applyEffect(
  1. Buffer target,
  2. Rect bounds
)
override

Applies the effect directly to the target buffer within bounds.

Implementation

@override
void applyEffect(Buffer target, Rect bounds) {
  for (var y = 0; y < bounds.height; y++) {
    final offset = randomOffset();
    if (offset != 0) {
      target.rotateRow(bounds, y, offset);
    }
  }
}