I'm trying to get a color from an image file.For example I have a grey image with rgb values (128,128,128).
If I use the get_pixel command it comes up with a value of Color(0.565, 0.565, 0.565, 1.000).
I expected to get Color(0.5, 0.5, 0.5, 1.0)
All colors seem to come out much brighter than in the original image. What am I doing wrong?
get pixel color
Posted by gari on Sep 08, 2011I'm trying to get a color from an image file.For example I have a grey image with rgb values (128,128,128).
If I use the get_pixel command it comes up with a value of Color(0.565, 0.565, 0.565, 1.000).
I expected to get Color(0.5, 0.5, 0.5, 1.0)
All colors seem to come out much brighter than in the original image. What am I doing wrong?