'Return the color to use for particular type of movement.'

def movement_color(self, move):

    if move.extruding:
        if (move.current_tool == 0):
            return self.color_tool0
        elif (move.current_tool == 1):
            return self.color_tool1
        elif (move.current_tool == 2):
            return self.color_tool2
        elif (move.current_tool == 3):
            return self.color_tool3
        else:
            return self.color_tool4
    return self.color_travel
