"Kay-Ju" <k.j### [at] gmx de> wrote:
> I.e. i have a field consisting of let's say 32
> by 32 small spheres and i want them to be translated
> along the y-axis according to the map-color.
>
> Can this be done?
> In an easy way?
There are multiple ways to do this. I guess the easiest is to #define a pigment
from the image, and use eval_pigment() (defined in functions.inc) in a double
loop to retrieve the color at the respective point in the image (note that the
coordinates should normally range from 0 to 1); you can then use the .red,
..green or .blue component of the returned color vector (or .gray for the
brightness) to compute the desired translation.
Post a reply to this message
|