|
|
Kenneth <kdw### [at] earthlinknet> wrote:
> Currently, the 3.6.1 documentation states,
> "The cells pattern fills 3-D space with unit cubes. Each cube gets a random
> value from 0 to 1."
> Wouldn't a clearer explanation be,
> "The cells pattern fills 3-D space with unit cubes. Each cube gets a random
> color value from 0 to 1 (or a random color chosen from a user-defined
> color_map.)" ?
The cells pattern is a pattern. Patterns do not have colors. It would thus
be incorrect to say that it gets color values.
A pattern is just a function which returns values between 0 and 1,
that's it. It can have several uses besides being used in a pigment.
Thus it would also be incorrect to say that it gets a color from a
user-defined color_map because it can be used in numerous other things
as well.
Example:
#declare R = function { pattern { cells } };
Where are the colors here? There aren't any. Where's the color_map? There
isn't one because one is not needed.
The function defined above can be used for anything that a function
can be used for. It can be used eg. to create a height_field. There are
no colors involved.
--
- Warp
Post a reply to this message
|
|