POV-Ray : Newsgroups : povray.binaries.programming : Colour space conversion code. Server Time
4 Dec 2023 05:13:48 EST (-0500)
  Colour space conversion code. (Message 1 to 1 of 1)  
From: Vahur Krouverk
Subject: Colour space conversion code.
Date: 25 Aug 2000 03:48:13
Message: <39A624FD.AD304598@aetec.ee>

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

Download 'cspace.zip' (6 KB)

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