forEachFrame method

void forEachFrame(
  1. FilterFunction callback
)

Call a callback for each frame of an animation.

This is really the same thing as the filter Command, but makes the intent a bit clearer.

Implementation

void forEachFrame(FilterFunction callback) {
  subCommand = FilterCmd(subCommand, callback);
}