1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

get pixel color

Posted by gari on Sep 08, 2011

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?