POV-Ray : Newsgroups : povray.binaries.programming : Colour space conversion code. : Colour space conversion code. Server Time
28 Mar 2024 17:47:14 EDT (-0400)
  Colour space conversion code.  
From: Vahur Krouverk
Date: 25 Aug 2000 03:48:13
Message: <39A624FD.AD304598@aetec.ee>
Hello!

This is my patched version of colour.c and colour.h. This patched
version includes conversion routine between RGB, HSL, HSV, XYZ, xyY, YIQ
colour spaces. 

Please note, that I changed return value of RGBtoHue to return
"standard" hue value and added function RGBtoSpecter for returning
"spectral value" of colour hue. If someone wants to use colour.c in
MegaPov, then files lighting.c and postproc.c should be changed
accordingly (replace RGBtoHue with RGBtoSpecter).

Another note: these files are in Unix format (includes only newline
character in the end of file).


Post a reply to this message


Attachments:
Download 'cspace.zip' (6 KB)

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