POV-Ray : Newsgroups : povray.general : Feature request: Native support for HSL color space : Re: Feature request: Native support for HSL color space Server Time
31 Jul 2024 18:15:15 EDT (-0400)
  Re: Feature request: Native support for HSL color space  
From: Shark
Date: 22 Oct 2006 01:30:00
Message: <web.453b01bf2b38173297b9615b0@news.povray.org>
"Tim Attwood" <tim### [at] comcastnet> wrote:
> > I would like to request that POV-Ray natively support color spaces other
> > than RGB (namely HSL) without having to use conversion formulas and all
> > that.
> There's macros in colors.inc for that...
> CHSL2RGB( )
>
> I'm not sure what syntax you would sugest, you'd need a
> hsl keyword similar to rgb?
> pigment {color hsl <1,1,1>} // like this?

Yes, that is along the lines of what I was thinking. We'd need an hslt
keyword, as well (for the transparency).

> I don't care for the look of CHSL2RGB() but it can
> be redefined
> #macro hsl(A) CHSL2RGB(A) #end
> Then you'd end up with
> pigment {color hsl(<1,1,1>)}
> which isn't much different.

Does the CHSL2RGB function take transparency into account? E.g., can the
function take a color vector with more than three components? The docs
don't say.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.