I'm using the python imaging library to build a bmp of some data. However, I really need to change my color using decimal numbers. The range of colors from int 0 to int 256 isn't enough variation for my diagram.
Here's an example to show somthing similar to what I'm doing:
pixels[x,y] = (random.randint(0, 256), random.randint(0, 256), random.randint(0, 256))
#note: in my example, the random int is the same for each param
however, I would want to vary my pixels from something larger (maybe like 0 - 1000). I wanted to use decimals so that I could vary the color within the 0 - 256 limit. However, I get an error when I paint a pixel with a decimal number. Is there a work-around for this?