|
|
On 11/22/2016 3:31 AM, clipka wrote:
> min(
> convertLCH2RGB_R(y*200-100,sqrt(x*x+z*z)*100,atan2(x,z)*pi/180),
> convertLCH2RGB_G(y*200-100,sqrt(x*x+z*z)*100,atan2(x,z)*pi/180),
> convertLCH2RGB_B(y*200-100,sqrt(x*x+z*z)*100,atan2(x,z)*pi/180),
> 1-convertLCH2RGB_R(y*200-100,sqrt(x*x+z*z)*100,atan2(x,z)*pi/180),
> 1-convertLCH2RGB_G(y*200-100,sqrt(x*x+z*z)*100,atan2(x,z)*pi/180),
> 1-convertLCH2RGB_B(y*200-100,sqrt(x*x+z*z)*100,atan2(x,z)*pi/180)
> )
I think the last parameter should be atan2(x,z)*180/pi because atan2
returns radians and convertLCH2RGB_R expects degrees.
Also, here's a rough approximation of what the surface should look like.
https://commons.wikimedia.org/wiki/File:Cielch_color_solid_cylinder.png
But with smooth curves instead of blocky sections.
Mike
Post a reply to this message
|
|