Commits

Michael Ziegler  committed 2f5a460

iterate over the full set of points

  • Participants
  • Parent commits ce04adc

Comments (0)

Files changed (1)

File myffmpeg/visualizer_example.py

 
         glColor3f( 0.0, 0.0, 0.0 )
 
-        nbpoints = len(self.points)
+        nbpoints = len(self.points) - 1
 
         glColor3f( 0.9, 0.3, 0.2 )
         glLineWidth(3);
         glBegin( GL_LINE_STRIP )
         glColor3f( 0.9, 0.3, 0.2 )
-        for idx, pnt in enumerate(self.points[1:]):
+        for idx, pnt in enumerate(self.points):
             glVertex2i( int(idx / float(nbpoints) * self.width), int(pnt * self.height) )
         glColor3f( 0.9, 0.3, 0.2 )
         glEnd()