diff options
author | Stephen Swaney <sswaney@centurytel.net> | 2005-05-22 22:43:29 +0400 |
---|---|---|
committer | Stephen Swaney <sswaney@centurytel.net> | 2005-05-22 22:43:29 +0400 |
commit | 8510196ecaeb7e4c123905d65d8bb3ee7a53de73 (patch) | |
tree | 91393d721ebbcdc6d97445488124f276948e3532 /source/blender/python/api2_2x/doc | |
parent | ece00ff04a90aa0aaa37f27185c25b0f7b19e77d (diff) |
Rename Image.getPixel() to .getPixelF() as per discussion
to match OpenGl conventions and prepare for integer versions.
Diffstat (limited to 'source/blender/python/api2_2x/doc')
-rw-r--r-- | source/blender/python/api2_2x/doc/Image.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/doc/Image.py b/source/blender/python/api2_2x/doc/Image.py index 4ebd6721c54..a7b2cb693eb 100644 --- a/source/blender/python/api2_2x/doc/Image.py +++ b/source/blender/python/api2_2x/doc/Image.py @@ -94,9 +94,10 @@ class Image: @rtype: int """ - def getPixel(x, y): + def getPixelF(x, y): """ Get the the colors of the current pixel in the form [r,g,b,a]. + Returned values are floats normalized to 0.0 - 1.0. Pixel coordinates are in the range from 0 to N-1. See L{getMaxXY} @returns: [ r, g, b, a] @rtype: list of 4 floats |