def addPathToPixelTable(path, pixelDictionary, value, width):
 for pointIndex in xrange((len(path) - 1)):
  pointBegin = path[pointIndex]
  pointEnd = path[(pointIndex + 1)]
  addValueSegmentToPixelTable(pointBegin, pointEnd, pixelDictionary, value, width)

def addPathToPixelTable ( path , pixelDictionary , value , width ) : for pointIndex in xrange ( ( len ( path ) - 1 ) ) : pointBegin = path [ pointIndex ] pointEnd = path [ ( pointIndex + 1 ) ] addValueSegmentToPixelTable ( pointBegin , pointEnd , pixelDictionary , value , width )
add path to the pixel table .