onStep: ((props?: object, step: framebuffer[]) => object)

Callback upon each step.

See

Returns

  • A stepState object to use for each of the step's next passes; or nullish to use the given props.

Type declaration

    • (props?, step): object
    • Parameters

      • Optionalprops: object

        The props passed to run.

      • step: framebuffer[]

        The framebuffers for props.stepNow from props.steps, where the next state step will be drawn. See toData.

      Returns object