POV-Ray : Newsgroups : povray.general : converting rgb to spectra : Re: converting rgb to spectra Server Time
9 Aug 2024 13:26:12 EDT (-0400)
  Re: converting rgb to spectra  
From: Vahur Krouverk
Date: 22 Aug 2000 02:47:00
Message: <39A2221F.B8F2E0D2@aetec.ee>
Chris Huff wrote:
> 
> In article <39A1A7FA.53ED54C8@faricy.net>, David Fontaine
> <dav### [at] faricynet> wrote:
> 
> > I wrote a macro to do RGB<->HLS...
> 
> And I have it on my system. :-)
> I just haven't reverse engineered it and written a POV conversion
> function yet. And it only takes care of one color space.
> 
> --
> Christopher James Huff

I've written conversion between RGB and HSV, HSL XYZ, xyY, YIQ color
spaces as C function in colour.c. (I've not tested it very much, hope I
haven't made too much mistakes in entering marrix constants). If someone
wants to add coversion support for POV-Ray language, then I can send
source code.


Post a reply to this message

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