181
Quick question, you said that this program has three or four eight set in tools to use to draw right? What are they?
Edit:
Sorry if this has already been asked, if it has I missed it.
Edit:
The reason I'm asking is because I can see two, feasible, possibilities for a TI-BASIC undo button.
1. Each time you use a command you store the coordinates needed and the type of action it was (I personally would store the coordinates and then make the type of action a different decimal place for each one) and when you run out of elements, if you do, just archive the current one and overflow into a new list. Then when you use the undo button you simply clear the screen and redraw it by using the stored coordinates and commands. Slower, yes, but would probably be the best option if you want as many undoes as you can.
2. After each command you store the image to a different picture variable, then when the click undo it just clears the screen and recalls the previous saved image. This is probably the fastest but as people have said you're only limited to ten (unless you use the hacked picture variables but I'd advise against that for something like this).
There are other ways you can do it but they are way over kill and very convoluted. And also would be way harder to code.
Edit:
Sorry if this has already been asked, if it has I missed it.
Edit:
The reason I'm asking is because I can see two, feasible, possibilities for a TI-BASIC undo button.
1. Each time you use a command you store the coordinates needed and the type of action it was (I personally would store the coordinates and then make the type of action a different decimal place for each one) and when you run out of elements, if you do, just archive the current one and overflow into a new list. Then when you use the undo button you simply clear the screen and redraw it by using the stored coordinates and commands. Slower, yes, but would probably be the best option if you want as many undoes as you can.
2. After each command you store the image to a different picture variable, then when the click undo it just clears the screen and recalls the previous saved image. This is probably the fastest but as people have said you're only limited to ten (unless you use the hacked picture variables but I'd advise against that for something like this).
There are other ways you can do it but they are way over kill and very convoluted. And also would be way harder to code.