def color_to_rgb(color):
    """Convert an ANTX decimal color into RGB."""
    hexa = hex((color-1)*-1)
    l = ['0']*6
    for i in range(len(hexa) - 2):
        l[len(l) - i - 1] = hexa[len(hexa) - i - 1]

    r = int(''.join(l[0:2]), 16)
    g = int(''.join(l[2:4]), 16)
    b = int(''.join(l[4:6]), 16)

    return r, g, b