Skip to content

Undo/Redo #105

Description

@sunjay

https://docs.python.org/2/library/turtle.html#turtle.undo

A per-turtle way to support undoing and then potentially redoing the last actions of a given turtle. Since we only have one turtle per drawing right now, it is fine to maintain just a single undo stack, but the idea is that this feature will eventually work well with multiple turtles (#16) as well.

We can also add something called a "save point" to return an identifier to a particular point in the turtle's state. This can be used to undo/redo the drawing back to a particular point. Then, instead of an undo stack, we could even make an undo graph/tree where you can go back and forth to any arbitrary point in history. Modeling it as a graph is probably a much later extension to what can start as a simpler feature.

This undo/redo functionality is related to the Push & Pop functionality added to this L-systems workshop that uses turtle.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions