Spectacular Cellular Automata
    Preparing search index...

    Function editorRedo

    • Redo last editor action.

      Returns void

      export function editorRedo() {
      if (drawingStroke) return;

      /** @type {ChangeT} */
      const change = reactiveState.redoStack.pop();
      change.setCellsDead.forEach((i) => (sharedState.cells[i] = 0));
      change.setCellsAlive.forEach((i) => (sharedState.cells[i] = 1));
      reactiveState.historyStack.push(change);
      }