multiple object tracking

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • iriggi
    New Member
    • Apr 2010
    • 2

    multiple object tracking

    I need to draw red balls that bounce from left to right and a ball which rotates (always the same uniform mouvement, a little circle in the middle). the illusion is that all the balls are bouncing, but it is not true.

    The problem is that I don't know how to made a python program who shows that.
  • bvdet
    Recognized Expert Specialist
    • Oct 2006
    • 2851

    #2
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

    Then when you are ready post a new question in this thread.

    BV - MODERATOR

    Comment

    • iriggi
      New Member
      • Apr 2010
      • 2

      #3
      I know, thank you, i don't want people doing my program. I just want to know how to do the bouncing from left to right

      Comment

      • bvdet
        Recognized Expert Specialist
        • Oct 2006
        • 2851

        #4
        I know some about Tkinter. You would start with a Tkinter.Canvas widget and create an oval object on the canvas. You can simulate movement by deleting the oval object and creating a new one in a slightly different position repeatedly at short time intervals. I have found the documentation here to be useful.

        Comment

        • Glenton
          Recognized Expert Contributor
          • Nov 2008
          • 391

          #5
          You could also use something like matplotlib to create the image files (from a graph) and then stitch them together. Or gnuplot.py to run Gnuplot and repeatedly replot.

          Comment

          Working...