[Bf-committers] RE: [Bf-python] New Python Function - Patch

Alexander Ewering blender at instinctive.de
Tue Feb 22 14:59:40 CET 2005


On Mon, 21 Feb 2005, Austin Benesh wrote:

> Ok, here is the patch for the documentation. The way this function works:
>
> getPixelColor(x,y)
>
> X,Y are (obviously) the coordinates of the pixel you want to know the color
> of. It returns 4 floats in the range of 0-1 (not 0-255) in the form of
> [r,g,b,a]. I am going to start working on a setPixelColor(x,y) as well.

Just a random comment: I would think that such a method to access single
pixel values with one function call per pixel is pretty useless unless you
have a supercomputer.

What would probably be much more useful is a function returning a whole
array (or whatever it's called in python) instead of a single pixel.

| alexander ewering              instinctive mediaworks
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de


More information about the Bf-committers mailing list