public clearCommands() as Void
Clears the recorded commands without touching the state.
painter.clearCommands()