1j01 / jspaint

🎨 Classic MS Paint, REVIVED + ✨Extras
https://jspaint.app/about
MIT License
7.18k stars 560 forks source link

Efficient undo history #51

Open 1j01 opened 6 years ago

1j01 commented 6 years ago

JS Paint allows way more undos than old versions of MS Paint (3 in Win95/98, and 50 in Win7), but it's way less efficient about it. It currently just naively stores the entire image for every undo state.

It should use rectangle-bounded operations. This is partially implemented in Mopaint.

1j01 commented 2 weeks ago

To fix "out of memory" errors: