def get_color_between(color1, color2, i):
    """ i is a number between 0 and 1, if 0 then color1, if 1 color2, ... """
    if i <= 0:
        return color1
    if i >= 1:
        return color2
    return (int(color1[0] + (color2[0] - color1[0]) * i),
            int(color1[1] + (color1[1] - color2[1]) * i),
            int(color1[2] + (color2[2] - color1[2]) * i))
dataset/ETHPy150Open tkrajina/cartesius/cartesius/colors.py/get_color_between/swapped operands of `-`