Relative Content

Tag Archive for logic

Logic behind an ‘undo’ for painting on a canvas

I’m working on a module that allows users a basic paint function. I want to support undoing any modifications done to the painting surface. Assuming that we have one layer (for the sake of simplicity), what is a reasonable way to store painting done so they can be undone?

Logic behind an ‘undo’ for painting on a canvas

I’m working on a module that allows users a basic paint function. I want to support undoing any modifications done to the painting surface. Assuming that we have one layer (for the sake of simplicity), what is a reasonable way to store painting done so they can be undone?