|
![](/i/fill.gif) |
Ah, so Hue varies from 0 to 360 degrees while Saturation and Value vary from 0
to 1. That's a very interesting piece of information. Exactly what I needed to
hear, Alain, merci!
It worked perfectly.
Ruy
Alain <aze### [at] qwerty org> wrote:
>
> Change your code to:
> #local Hue = (Mx-Cr)/Mx*360;
> // Scale to a full circle on the colour wheel
> // Adjust if you want to use a smaller or larger range
> texture {
> pigment{rgb CHSV2RGB(<Hue, 1.0, 1.0>)}
> }
>
> OR change your pigment to:
> pigment{rgb CHSV2RGB(<((Mx-Cr)/Mx)*360, 1.0, 1.0>)}
>
>
>
> Alain
Post a reply to this message
|
![](/i/fill.gif) |