Relative Content

Tag Archive for canvas

Javascript MVC application design (canvas)

I’m having difficulty grasping how to structure/architect a canvas application using an MVC like approach in Javascript. UI will be fairly fluid and animated, the games fairly simplistic but with heavy emphasis on tweening and animation. I get how MVC works in principle but not in practice. I’ve googled the buggery out of this, read an awful lot, and am now as confused as I was when I started.

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?