https://twitter.com/wetgenes/status/1554873202643537921 @davidcapello @beast_pixels @aseprite The actual undo code is mostly complicated by keeping track of image size changes and other horrible things like that.
Its pretty much all here in lua only.
https://github.com/xriss/gamecake/blob/master/lua/wetgenes/grdhistory.lua