def convert_palette(palette):
    """Convert palette from [0,255] range to [0,1].
    """
    new_palette = []
    for i in palette:
        new_palette.append((i[0] / 255.0, i[1] / 255.0, i[2] / 255.0))
    return new_palette
