I'm working on a problem for a Python program, and I'm stuck on figuring out a solution to this math problem:
I have a robot that records the "brightness" of the light through a sensor by a value of 0-65000, with 65000 being the darkest. I then need to turn this value into an RGB color scale (0-255) I need to use a whole number, 0-65000, and convert it down to a value of 0-255.
Is this possible with a mathematical formula?