|
 |
On 11/8/23 16:44, Bald Eagle wrote:
> #declare Onion = function {pigment {onion} color_map {[0 rgb 0] [1 rgb 1]}}
FWIW. A better option, when all you want is a pattern's scalar value for
a function is:
#declare Onion = function {pattern {onion}}
It avoids the conversion to grey - and, of course, no worries about the
default color map.
---
Aside: I saw your other posts on select() and yuqk/v4 ideas, but it'll
be a bit before I can even read through them. I'm still working through
tuple / batch assignment issues. Once I manage that bit,
'local'/'global' pseudo dictionary and 'optional' issues will pop off
the debug stack.
Busy with real life later today too.
Bill P.
Post a reply to this message
|
 |