|
![](/i/fill.gif) |
"Trevor G Quayle" <Tin### [at] hotmail com> wrote:
>
> For what it does:
>
> #declare Vec = foo(1,2,3) returns the rgb value at the (x,y,z) coordinate
> (1,2,3)
>
> #declare Val = foo(2,3,4).gray does the same thing, but then converts it to a
> single gray value based on rgb->grey conversion formula.
and later...
> Or perhaps you have a number of different flowers in a field (lets say five).
> Each time you check a spot where you want to place the flower, you can evaluate
> foo() at those coordinates...
Those are really clear and useful explanations. Thanks, Trevor! A new 'tool' to
use.
Up 'til now, I've been using eval_pigment to do exactly those kinds of things
(your flowers example.)
As is usual with me... ;-) ... I think that such a simple and concise
description of 'what it does' (the (1,2,3) values etc) would be a good addition
to the documentation--in "Declaring User-Defined Color Functions" perhaps or
somewhere preceding that.
Post a reply to this message
|
![](/i/fill.gif) |