|
![](/i/fill.gif) |
On 11/24/2016 6:46 PM, clipka wrote:
> Am 24.11.2016 um 22:50 schrieb Mike Horvath:
>> It occurred to me that the color solid should not extend beyond a
>> cylinder with radius 1 and height 1. I have attached an overhead view.
>
> May I ask the stupid question, "why not"?
>
> I would expect the Lch colour space to encompass all the RGB colour
> space, so the boundaries of the latter should be sufficient to bound the
> shape.
>
> My guess is that the issues you see with the shape are due to bogosities
> in your colour conversion functions.
>
L, C and H are supposed to form a cylinder. There are some very small
sRGB bits poking outside of the cylinder. I guess I could show the bits
as well, as long as I explain what they are.
Also, I *did* make a mistake in the color conversion code. I was
clamping L, C and H to 0..100, 0..100 and 0..360 incorrectly. Once I
stopped clamping, the shape turned into what I have been expecting based
on earlier tests.
I've attached the final shape, with the outside sRGB bits trimmed off.
Mike
Post a reply to this message
Attachments:
Download 'cielch_color_solid_cylinder_isosurface.png' (24 KB)
Preview of image 'cielch_color_solid_cylinder_isosurface.png'
![cielch_color_solid_cylinder_isosurface.png](/povray.advanced-users/attachment/%3C583793b4%241%40news.povray.org%3E/cielch_color_solid_cylinder_isosurface.png?preview=1)
|
![](/i/fill.gif) |