I am reading values from something in Python. The values come in a strange format. The documentation says:
Color is represented by a single value from 0 to 8355711. The RGB(r,g,b) function calculates ((R*127 x 2^16) + (G*127 x 2^8) + B*127), where R, G and B are values between 0.00 and 1.00
Som, a red color has the value of 16712965
I would love to know how to 'unpack' those values as a tuple or something but am struggling with that math. If this is not possible, a way to convert that value to an rgb value somehow would be great. Please help! Thanks