Python Forum
How to animate a Turing Machine
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to animate a Turing Machine
#1
I want to depict a paper tape with ones and zeros scrolling past a read head "eye". I am little stuck on the design for this. I guess my first thought is to have a square object that can move left and right. One of these could look like a frame on a tape. That would mean drawing a square and writing a "0", etc.

An array of these could be made to move, by re-drawing (?) but I think it would get kinda choppy. Is there some other way to think about this. Is this a pygame Tkinter project? I would like some ideas on the best approach.

Also, would I be able to "draw" these frames off screen and then quickly run them past the read head. Maybe hundreds per second?
Reply


Messages In This Thread
How to animate a Turing Machine - by darter - Jul-20-2018, 03:09 AM
RE: How to animate a Turing Machine - by Larz60+ - Jul-20-2018, 09:43 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020