def addLoopToPixelTable(loop, pixelDictionary, width):
 for pointIndex in xrange(len(loop)):
  pointBegin = loop[pointIndex]
  pointEnd = loop[((pointIndex + 1) % len(loop))]
  addValueSegmentToPixelTable(pointBegin, pointEnd, pixelDictionary, None, width)

def addLoopToPixelTable ( loop , pixelDictionary , width ) : for pointIndex in xrange ( len ( loop ) ) : pointBegin = loop [ pointIndex ] pointEnd = loop [ ( ( pointIndex + 1 ) % len ( loop ) ) ] addValueSegmentToPixelTable ( pointBegin , pointEnd , pixelDictionary , None , width )
add loop to the pixel table .